Ejemplo n.º 1
0
        void Start()
        {
            // 设置当前的游戏模式
            mGameMode             = new GameMode_CreatePlayer();
            mGameMode.StageConfig = GameConfig.Instance.GetStageConfig(10001);
            if (mGameMode.StageConfig == null)
            {
                Debug.LogError("Not found stage 10001 .");
                return;
            }

            GameMode.GetCurrentMode = (() =>
            {
                return(mGameMode);
            });

            // 开始游戏
            GameStageManager.Instance.InitGame();
            GameStageManager.Instance.StageIntialize();
            GameStageManager.Instance.StageRunning();
        }
Ejemplo n.º 2
0
        public override void Start()
        {
            // 设置当前的游戏模式
            mGameMode             = new GameMode_CreatePlayer();
            mGameMode.StageConfig = Game.Knight.GameConfig.Instance.GetStageConfig(10001);
            if (mGameMode.StageConfig == null)
            {
                Debug.LogError("Not found stage 10001 .");
                return;
            }

            // 记录场景的路径
            mSceneABPath = mGameMode.StageConfig.SceneABPath;

            GameMode.GetCurrentMode = (() =>
            {
                return(mGameMode);
            });

            // 开始游戏
            GameStageManager.Instance.InitGame();
            GameStageManager.Instance.StageIntialize();
            GameStageManager.Instance.StageRunning();
        }
Ejemplo n.º 3
0
 public StageTask_InitData(GameMode_CreatePlayer rGameMode)
 {
     this.GameMode = rGameMode;
 }
Ejemplo n.º 4
0
 public StageTask_LoadAssets(GameMode_CreatePlayer rGameMode)
 {
     this.GameMode = rGameMode;
 }