Beispiel #1
0
        public void Reset(On.GameManager.SceneLoadInfo.orig_NotifyFetchComplete origNotifyFetchComplete, GameManager.SceneLoadInfo sceneLoadInfo)
        {
            RestoreCameraBehaviour();
            ToggleOff();

            origNotifyFetchComplete(sceneLoadInfo);
        }
Beispiel #2
0
        public static void Reset(On.GameManager.SceneLoadInfo.orig_NotifyFetchComplete origNotifyFetchComplete, GameManager.SceneLoadInfo sceneLoadInfo)
        {
            RestoreCameraBehaviour();
            ToggleOff();
            if (_blurPlaneOff)
            {
                ToggleBlurPlane();
            }

            origNotifyFetchComplete(sceneLoadInfo);
        }
        public static void StopFreeze(On.GameManager.SceneLoadInfo.orig_NotifyFetchComplete origNotifyFetchComplete, GameManager.SceneLoadInfo sceneLoadInfo)
        {
            CoroutineStarter.StopAllCoroutines();

            foreach (KeyValuePair <ParticleSystem, float> pair in LoopingParticles)
            {
                if (pair.Key == null)
                {
                    continue;
                }
                pair.Key.Play(); // Play the particles in case they were off due to the class stopping them
                ParticleSystem.EmissionModule emissionModule = pair.Key.emission;
                emissionModule.rateOverTimeMultiplier = pair.Value;
            }

            LoopingParticles.Clear();


            origNotifyFetchComplete(sceneLoadInfo);
        }