/// <summary> 开始游戏 </summary> private void OnClickStart() { StartLevelArgs e = new StartLevelArgs { LevelIndex = _selectIndex }; SendEvent(Consts.E_StartLevel, e); }
//选用关卡游戏 public void ChooseLevel() { StartLevelArgs e = new StartLevelArgs() { LevelID = m_SelectedIndex }; SendEvent(Consts.E_StartLevel, e); }
public override void Execute(object data) { RoundModel rModel = GetModel <RoundModel>(); StartLevelArgs e = data as StartLevelArgs; //进入游戏 Game.Instance.LoadScene(3); }
public void OnRestartClick() { GameModel gm = GetModel <GameModel>(); StartLevelArgs e = new StartLevelArgs(); e.LevelIndex = gm.PlayLevelIndex; SendEvent(Consts.E_StartLevel, e); }
//选用关卡游戏 public void ChooseLevel() { StartLevelArgs e = new StartLevelArgs() { LevelIndex = m_SelectedIndex }; SendEvent(Consts.E_StartLevel, e); Sound.Instance.PlayBg("level"); }
/// <summary> /// 选择关卡 /// </summary> public void ChooseLevel() { StartLevelArgs e = new StartLevelArgs() { LevelID = 0 }; SendEvent(Constant.E_StartLevel, e); }
public override void Execute(object data) { StartLevelArgs e = data as StartLevelArgs; //第一步 GameModel gModel = GetModel <GameModel>(); gModel.StartLevel(e.LevelIndex); gModel.Gold = 400; //进入游戏 Game.Instance.LoadScene(3); }
public override void Execute(object data) { StartLevelArgs e = data as StartLevelArgs; GameModel gameModel = GetModel <GameModel>(); gameModel.StartLevel(e.LevelIndex); RoundModel roundModel = GetModel <RoundModel>(); roundModel.LoadLevel(gameModel.PlayLevel); Game.Instance.LoadScene(3); }
public override void Execute(object data) { StartLevelArgs e = data as StartLevelArgs; // 第一步 GameModel gModel = GetModel <GameModel>(); gModel.StartLevel(e.LevelIndex); // 第二步 RoundModel rModel = GetModel <RoundModel>(); rModel.LoadLevel(gModel.PlayLevel); // 进入游戏 Game.Instance.LoadScene(3); }
public override void Execute(object data) { StartLevelArgs e = data as StartLevelArgs; //第一步 /*GameModel gModel = GetModel<GameModel>(); * gModel.StartLevel(e.LevelIndex);*/ //第二步 RoundModel rModel = GetModel <RoundModel>(); //rModel.LoadLevel(gModel.PlayLevel); rModel.CreateMonster(); }
public void OnContinueClick() { GameModel gm = GetModel <GameModel>(); if (gm.PlayLevelIndex >= gm.LevelCount - 1) { Game.Instance.LoadScene(4); } else { StartLevelArgs e = new StartLevelArgs() { LevelIndex = gm.PlayLevelIndex + 1 }; SendEvent(Consts.E_StartLevel, e); } }
void Map_OnTileClick(object sender, EventArgs e) { current_stage += 1; if (current_stage == 1) { textleft.gameObject.SetActive(false); textright.gameObject.SetActive(true); textright.text = "It's my honor to serve you and your son, Prince Liu."; } else if (current_stage == 2) { textright.text = "We should leave now, Chancelor Cao is coming."; } else if (current_stage == 3) { textright.gameObject.SetActive(false); textleft.gameObject.SetActive(true); textleft.text = "Yes, indeed."; } else if (current_stage == 4) { liubei.gameObject.SetActive(false); zhaoyun.gameObject.SetActive(false); zhangfei.gameObject.SetActive(true); textleft.text = "Let me cover you, brother"; } else if (current_stage == 5) { textleft.gameObject.SetActive(false); caocao.gameObject.SetActive(true); textright.gameObject.SetActive(true); textright.text = "LMAO, today is a good day to die, Sir Liu"; } else { StartLevelArgs ee = new StartLevelArgs() { LevelIndex = 0 }; SendEvent(Consts.E_StartLevel, ee); } }