Exemple #1
0
    /// <summary>
    /// 重新开始游戏的初始化
    /// </summary>
    private void OnStateInitSTGDataUpdate()
    {
        Global.IsInReplayMode = _stgData.isReplay;
        if (!Global.IsInReplayMode)
        {
            _stgData.seed = InitSeed();
        }
        MTRandom.Init(_stgData.seed);
#if DEBUG_GAMESTATE
        string modeStr = Global.IsInReplayMode ? "Replay" : "Play";
#if LOG_RANDOMSEED
        Logger.Log(string.Format("Init STGData,seed = {0}\nGameMode = {1}", _stgData.seed, modeStr));
#else
        Logger.Log(string.Format("Init STGData\nGameMode = {1}", _stgData.seed, modeStr));
#endif
#endif
        _curState = eSTGMainState.StateCreateStageTask;
    }