Enums in Unity

    public enum EnemyType
    {
        soldier,
        bomber,
        officer,
        scout,
        medic
    }

    // Display enum list in the inspector
    [SerializeField] EnemyType enemies = 0; 

    void Update()
    {
        print(enemies);         // display enum as name
        print((int)enemies);    // display enum as int
    }