private void OnDestroy() { Scene.ActiveMB = null; Scene.GameStats = null; Scene.SceneTracker = null; Scene.MutantControler = null; Scene.MutantSpawnManager = null; Scene.Yacht = null; Scene.PlaneCrash = null; Scene.PlaneCrashAnimGO = null; Scene.TriggerCutScene = null; Scene.RainFollowGO = null; Scene.RainTypes = null; Scene.WeatherSystem = null; Scene.HudGui = null; Scene.Cams = null; Scene.Clock = null; Scene.Atmosphere = null; Scene.WorkScheduler = null; Scene.LoadSave = null; Scene.PlaneGreebles = null; Scene.OceanFlat = null; Scene.OceanCeto = null; Scene.ShoreMask = null; Scene.SinkHoleCenter = null; Scene.CaveGrounds = null; }
private void Awake() { Scene.ActiveMB = this; Scene.GameStats = this._gameStats; Scene.SceneTracker = this._sceneTracker; Scene.MutantControler = this._mutantControler; Scene.MutantSpawnManager = this._mutantSpawnManager; Scene.Yacht = this._yacht; Scene.PlaneCrash = this._plane; Scene.PlaneCrashAnimGO = this._planeCrashAnimGO; Scene.TriggerCutScene = this._triggerCutScene; Scene.RainFollowGO = this._rainFollowGO; Scene.RainTypes = this._rainTypes; Scene.WeatherSystem = this._weatherSystem; Scene.HudGui = this._hudGui; Scene.Cams = this._cams; Scene.Clock = this._clock; Scene.Atmosphere = this._atmos; Scene.WorkScheduler = this._workScheduler; Scene.LoadSave = this._loadSave; Scene.PlaneGreebles = this._planeGreebles; Scene.OceanFlat = this._oceanFlat; Scene.OceanCeto = this._oceanCeto; Scene.ShoreMask = this._shoreMask; Scene.SinkHoleCenter = this._sinkHoleCenter; Scene.CaveGrounds = this._caveGrounds; }
/// <summary> /// Replaces the rain - intended to be called once per day start /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> /// </summary> public void ReplaceRain(object sender = null, DayEndingEventArgs e = null) { if (!Globals.Config.RandomizeRain) { return; } if (Globals.RNG == null) { return; } RainTypes rainType = Globals.RNGGetRandomValueFromList( Enum.GetValues(typeof(RainTypes)).Cast <RainTypes>().ToList()); AddReplacement("TileSheets/rain", $"Assets/TileSheets/{rainType.ToString()}Rain"); _mod.Helper.Content.InvalidateCache("TileSheets/rain"); }
private void Awake() { Scene.ActiveMB = this; Scene.GameStats = this._gameStats; Scene.SceneTracker = this._sceneTracker; Scene.MutantControler = this._mutantControler; Scene.MutantSpawnManager = this._mutantSpawnManager; Scene.Yacht = this._yacht; Scene.PlaneCrash = this._plane; Scene.PlaneCrashAnimGO = this._planeCrashAnimGO; Scene.TriggerCutScene = this._triggerCutScene; Scene.RainFollowGO = this._rainFollowGO; Scene.RainTypes = this._rainTypes; Scene.WeatherSystem = this._weatherSystem; Scene.HudGui = this._hudGui; Scene.Cams = this._cams; Scene.Clock = this._clock; Scene.Atmosphere = this._atmos; Scene.WorkScheduler = this._workScheduler; Scene.LoadSave = this._loadSave; Scene.PlaneGreebles = this._planeGreebles; Scene.OceanFlat = this._oceanFlat; Scene.OceanCeto = this._oceanCeto; Scene.ShoreMask = this._shoreMask; Scene.SinkHoleCenter = this._sinkHoleCenter; Scene.CaveGrounds = this._caveGrounds; }
private void OnDestroy() { Scene.ActiveMB = null; Scene.GameStats = null; Scene.SceneTracker = null; Scene.MutantControler = null; Scene.MutantSpawnManager = null; Scene.Yacht = null; Scene.PlaneCrash = null; Scene.PlaneCrashAnimGO = null; Scene.TriggerCutScene = null; Scene.RainFollowGO = null; Scene.RainTypes = null; Scene.WeatherSystem = null; Scene.HudGui = null; Scene.Cams = null; Scene.Clock = null; Scene.Atmosphere = null; Scene.WorkScheduler = null; Scene.LoadSave = null; Scene.PlaneGreebles = null; Scene.OceanFlat = null; Scene.OceanCeto = null; Scene.ShoreMask = null; Scene.SinkHoleCenter = null; Scene.CaveGrounds = null; }