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); }
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); }