Beispiel #1
0
        public static InvasionPosition GetPositionForInvader(InvaderType type)
        {
            switch (type)
            {
            case (InvaderType.Soldier):
                return(SOLDIER_POSITION);

            case (InvaderType.Archer):
                return(ARCHER_POSITION);

            case (InvaderType.Healer):
                return(HEALER_POSITION);
            }
            UnityEngine.Debug.LogError("GetPositionForInvader(): Recieved unsupported invader type " + type.ToString());
            return(InvasionPosition.Front);
        }
Beispiel #2
0
        public static ushort GetHealthForInvader(InvaderType type)
        {
            switch (type)
            {
            case (InvaderType.Soldier):
                return(SOLDIER_HEALTH);

            case (InvaderType.Archer):
                return(ARCHER_HEALTH);

            case (InvaderType.Healer):
                return(HEALER_HEALTH);
            }
            UnityEngine.Debug.LogError("GetHealthForInvader(): Recieved unsupported invader type " + type.ToString());
            return(0);
        }