public override void BeginAutomation()
    {
        base.BeginAutomation();
        gameObject.AddComponent <GameListenerHandler>();
        GameCrawler gc = gameObject.AddComponent <GameCrawler>();

        gc.Initialize(config);
        StartCoroutine(WaitForCrawler());
    }
Esempio n. 2
0
        public void OnGUI()
        {
            if (wnd == null)
            {
                ShowWindow();
            }
            if (!initialized)
            {
                SetUpView();
                initialized = true;
            }
            else if (!WaitForModuleReady && renderStopButton && !RecordingInputModule.isWorkInProgress && ReportingManager.IsReportingFinished())
            {
                StopRecording(PlayModeStateChange.ExitingPlayMode);
            }

            if (startCrawl && RecordedPlaybackController.Instance != null)
            {
                startCrawl = false;
                RecordedPlaybackController.Instance.gameObject.AddComponent <GameListenerHandler>();
                GameCrawler gc = RecordedPlaybackController.Instance.gameObject.AddComponent <GameCrawler>();
                gc.Initialize();
            }
        }