示例#1
0
        public override void PrepareState(RootController owner)
        {
            base.PrepareState(owner);

            owner.UI.MenuView.OnPlay += PlayGame;
            owner.UI.ShowMenu();
        }
示例#2
0
        public override void PrepareState(RootController owner)
        {
            base.PrepareState(owner);

            owner.UI.GameView.OnFinish += FinishGame;
            owner.UI.ShowGame();
        }
示例#3
0
        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();
        }
示例#4
0
 public virtual void PrepareState(RootController owner)
 {
     this.owner = owner;
 }