private void OnStartButtonClick() { FBStartLevelArgs e = new FBStartLevelArgs { ID = f_selectedIndex }; SendEvent(FBConsts.E_LevelStart, e); }
public override void Execute(object data = null) { FBStartLevelArgs e = data as FBStartLevelArgs; //第一步 FBGameModel gameModel = GetModel <FBGameModel>(); gameModel.StartLevel(e.ID); //第二步 FBRoundModel roundModel = GetModel <FBRoundModel>(); roundModel.LoadLevel(gameModel.PlayLevel); // 进入游戏 FBGame.Instance.LoadScene(3); }