private void BSEvents_menuSceneLoadedFresh() { if (_chatDisplay != null) { DestroyImmediate(_chatDisplay.gameObject); _chatDisplay = null; MainThreadInvoker.ClearQueue(); } _chatDisplay = BeatSaberUI.CreateViewController <ChatDisplay>(); }
private void BSEvents_menuSceneLoadedFresh(ScenesTransitionSetupDataSO scenesTransitionSetupDataSo) { if (this._chatDisplay) { DestroyImmediate(this._chatDisplay.gameObject); this._chatDisplay = null; MainThreadInvoker.ClearQueue(); } this._chatDisplay = BeatSaberUI.CreateViewController <ChatDisplay>(); this._chatDisplay.gameObject.SetActive(true); }