void SetTargetSoldiers() { if (unitType == UnitType.healer) { targetSoldiers = team.GetSoldiers(); } else { switch (team.GetOwner()) { case TeamData.Owners.Player: targetSoldiers = GameController.Get().GetAITeamData().GetSoldiers(); break; case TeamData.Owners.AI: targetSoldiers = GameController.Get().GetPlayerTeamData().GetSoldiers(); break; } } }