/// <summary> /// Called when a dream is ended, be it manually or automatically /// </summary> private static void DreamCleanup() { Fader.ClearHandler(); // clear all the junk from the post-fade event handler PlayerSpawns.Clear(); Target.Targets.Clear(); OnLevelFinishChange = null; PostLoadEvent = null; CanSpawnGreyman = false; ResourceManager.ClearLifespan(ResourceLifespan.LEVEL); ResourceManager.ClearLifespan(ResourceLifespan.DREAM); Player = null; }