private void Awake() { s_instance = this; this.CreateHitTestPriorityMap(); this.m_FullscreenEffectsCamera = CameraUtils.FindFullScreenEffectsCamera(true); if (this.m_FullscreenEffectsCamera != null) { this.m_FullscreenEffectsCameraActive = true; } }
private void DisableOtherModeStuff() { if (SceneMgr.Get().GetPrevMode() != SceneMgr.Mode.GAMEPLAY) { Camera camera = CameraUtils.FindFullScreenEffectsCamera(true); if (camera != null) { camera.GetComponent <FullScreenEffects>().Disable(); } } }