public void EndTurn() { foreach (Unit unit in Units) { if (UseAi) { unit.MoveTo(MoveHelpers.GetAiMove(unit)); unit.Attack(MoveHelpers.GetAiAttckNode(unit.CurrNode, unit.Faction, unit)); } unit.Refresh(); } }
public void EndTurn() { foreach (Unit unit in Units) { if (UseAi) { unit.MoveTo(MoveHelpers.GetAiMove(unit)); unit.Attack(MoveHelpers.GetAiAttckNode(unit.CurrNode, unit.Faction, unit)); } unit.Refresh(); } }