public override void OnUpdate() { if (HaveReachCondition()) { //PositionerDemo.Motion bannerMotion = gmMachine.informationUIManager.SetAndShowBanner("TURN STATE", 0.5f); //InvokerMotion.AddNewMotion(bannerMotion); //InvokerMotion.StartExecution(gmMachine); Animotion bannerMotion = gmMachine.informationUIManager.SetAndShowBannerAnimotion("TURN STATE", 0.5f); InvokerAnimotion.AddNewMotion(bannerMotion); InvokerAnimotion.StartExecution(gmMachine); TurnState turnState = new TurnState(60, gmMachine); IState changePhaseState = new ChangePhaseState(gmMachine, turnState); OnNextState(changePhaseState); } base.OnUpdate(); }
public override void OnUpdate() { if (HaveReachCondition()) { AdministrationState adminState = new AdministrationState(20, gmMachine, 1); //Motion bannerMotion = gmMachine.informationUIManager.SetAndShowBanner(adminState.stateName, 0.5f); //InvokerMotion.AddNewMotion(bannerMotion); //InvokerMotion.StartExecution(gmMachine); Animotion bannerMotion = gmMachine.informationUIManager.SetAndShowBannerAnimotion(adminState.stateName, 0.5f); InvokerAnimotion.AddNewMotion(bannerMotion); InvokerAnimotion.StartExecution(gmMachine); IState changePhaseState = new ChangePhaseState(gmMachine, adminState); OnNextState(changePhaseState); //OnNextState(adminState); } base.OnUpdate(); }
public override void OnUpdate() { if (logOn) { Debug.Log("IN STATE " + stateName); } if (HaveReachCondition()) { //PositionerDemo.Motion bannerMotion = gmMachine.informationUIManager.SetAndShowBanner(nextState.stateName, 0.5f); //InvokerMotion.AddNewMotion(bannerMotion); //InvokerMotion.StartExecution(gmMachine); Animotion bannerMotion = gmMachine.informationUIManager.SetAndShowBannerAnimotion(nextState.stateName, 0.5f); InvokerAnimotion.AddNewMotion(bannerMotion); InvokerAnimotion.StartExecution(gmMachine); IState changePhaseState = new ChangePhaseState(gmMachine, nextState); OnNextState(changePhaseState); } gameTimer.RestTime(); }