public override void PrepareState(RootController owner) { base.PrepareState(owner); owner.UI.MenuView.OnPlay += PlayGame; owner.UI.ShowMenu(); }
public override void PrepareState(RootController owner) { base.PrepareState(owner); owner.UI.GameView.OnFinish += FinishGame; owner.UI.ShowGame(); }
public override void PrepareState(RootController owner) { base.PrepareState(owner); owner.UI.FinishView.OnReplay += ReplayGame; owner.UI.FinishView.OnMenu += GoToMenu; var data = owner.Storage.GetData <GameResult>(DataStorageKeys.GAMERESULT_KEY); owner.UI.FinishView.ShowResult(data); owner.UI.ShowFinish(); }
public virtual void PrepareState(RootController owner) { this.owner = owner; }