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); }
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(); }
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); }
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(); }
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); }
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(); }
void OnClickPauseBtn(GameObject go) { Debug.Log(go.name); m_UIPause.Show(); }
public void ChangeUI(MenuUI menuUI) { uiGamePlay.Show(menuUI == MenuUI.gamePlay); uiMenu.Show(menuUI == MenuUI.menu); uiPause.Show(menuUI == MenuUI.pause); }