示例#1
0
        void Awake()
        {
            try
            {
                this.tool = new HandymanModeratorTool(this.environments, this.scoreManager, this.avatarMotionPlayback, this.playbackManager);

                this.stepTimer = new StepTimer();

                this.mainMenu            = GameObject.FindGameObjectWithTag("MainMenu");
                this.mainPanelController = mainMenu.GetComponent <PanelMainController>();
            }
            catch (Exception exception)
            {
                Debug.LogError(exception);
                SIGVerseLogger.Error(exception.Message);
                SIGVerseLogger.Error(exception.StackTrace);
                this.ApplicationQuitAfter1sec();
            }
        }
        void Awake()
        {
            try
            {
                if (HandymanConfig.Instance.configFileInfo.playbackType == WorldPlaybackCommon.PlaybackTypePlay)
                {
                    return;
                }

                this.tool = new HandymanModeratorTool(this);

                this.stepTimer = new StepTimer();

                this.mainMenu            = GameObject.FindGameObjectWithTag("MainMenu");
                this.mainPanelController = mainMenu.GetComponent <PanelMainController>();
            }
            catch (Exception exception)
            {
                Debug.LogError(exception);
                SIGVerseLogger.Error(exception.Message);
                SIGVerseLogger.Error(exception.StackTrace);
                this.ApplicationQuitAfter1sec();
            }
        }