Пример #1
0
    public override void Execute(object data)
    {
        GameModel gm = GetModel <GameModel>();

        gm.m_isPause = true;

        UIPause   pause = GetView <UIPause>();
        PauseArgs e     = data as PauseArgs;

        pause.Show(e);
    }
Пример #2
0
    public override void Execute(object data)
    {
        PauseArgs e  = data as PauseArgs;
        GameModel gm = GetModel <GameModel>();

        gm.IsPause = true;
        UIPause pause = GetView <UIPause>();

        pause.txtCoins.text    = e.coin.ToString();
        pause.txtDistance.text = e.distance.ToString();
        pause.txtScore.text    = e.score.ToString();
        pause.Show();
    }
Пример #3
0
    public override void Execute(object data)
    {
        PauseArgs e = data as PauseArgs;

        GameModel gm = GetModel <GameModel>();

        gm.IsPause = true;

        UIPause pause = GetView <UIPause>();

        pause.Show();
        pause.ShowScore(e.distance, e.coin, e.score);
    }
Пример #4
0
    public override void Excute(object data)
    {
        GameModel gameModel = GetModel <GameModel>();

        gameModel.IsPause = true;

        PauseArgs args = (PauseArgs)data;

        UIPause pause = GetView <UIPause>();

        pause.Coin     = args.coin;
        pause.Distance = args.distance;
        pause.Score    = args.score;
        pause.Show();
    }
Пример #5
0
    public override void Execute(object data = null)
    {
        GameModel gm = GetModel <GameModel>();

        gm.IsPause = true;

        //显示暂停UI
        UIPause pause = GetView <UIPause>();

        pause.Show();
        PauseArgs e = data as PauseArgs;

        //更新UI
        pause.UpdateUI(e);
    }
Пример #6
0
    public override void Execute(object data)
    {
        PauseArgs e = data as PauseArgs;

        Game.M_Instance.M_GM.M_IsPause = true;
        UIPause pause = MVC.GetView <UIPause>();

        pause.Show();
        pause.m_textCoin.text  = e.M_Coin.ToString();
        pause.m_textDis.text   = e.M_Distance.ToString();
        pause.m_textScore.text = e.M_Score.ToString();

        PlayerAnim anim = MVC.GetView <PlayerAnim>();

        anim.StopPlayerAnim();
    }
Пример #7
0
    void OnClickPauseBtn(GameObject go)
    {
        Debug.Log(go.name);

        m_UIPause.Show();
    }
Пример #8
0
 public void ChangeUI(MenuUI menuUI)
 {
     uiGamePlay.Show(menuUI == MenuUI.gamePlay);
     uiMenu.Show(menuUI == MenuUI.menu);
     uiPause.Show(menuUI == MenuUI.pause);
 }