//Assignment and launch of execution of meneuver public void AssignManeuver() { string parameters = EventSystem.current.currentSelectedGameObject.name; Selection.ThisShip.AssignedManeuver = MovementFromString(parameters); Selection.ThisShip.InfoPanel.transform.FindChild("DialAssigned" + Selection.ThisShip.Owner.Id).gameObject.SetActive(true); Roster.HighlightShipOff(Selection.ThisShip); Game.UI.HideDirectionMenu(); if (Roster.AllManuersAreAssigned(Phases.CurrentPhasePlayer)) { Game.UI.ShowNextButton(); Game.UI.HighlightNextButton(); } }
public override void Next() { if (Roster.AllManuersAreAssigned(RequiredPlayer)) { if (RequiredPlayer == Phases.PlayerWithInitiative) { RequiredPlayer = Roster.AnotherPlayer(RequiredPlayer); UpdateHelpInfo(); HighlightShips(); Roster.GetPlayer(RequiredPlayer).AssignManeuver(); } else { FinishPhase(); } } }
//Assignment and launch of execution of meneuver public void AssignManeuver() { string parameters = EventSystem.current.currentSelectedGameObject.name; Selection.ThisShip.SetAssignedManeuver(MovementFromString(parameters)); UI.HideDirectionMenu(); if (Phases.CurrentSubPhase.GetType() == typeof(SubPhases.PlanningSubPhase)) { //Selection.ThisShip.InfoPanel.transform.Find("DialAssigned" + Selection.ThisShip.Owner.Id).gameObject.SetActive(true); Roster.HighlightShipOff(Selection.ThisShip); if (Roster.AllManuersAreAssigned(Phases.CurrentPhasePlayer)) { UI.ShowNextButton(); UI.HighlightNextButton(); } } else { Triggers.FinishTrigger(); } }