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; }
private void Awake() { this.animator = base.transform.GetComponentInChildren <Animator>(); this.getParams = base.GetComponent <getAnimatorParams>(); this.setup = base.transform.GetComponentInChildren <mutantScriptSetup>(); this.ai = base.transform.GetComponentInChildren <mutantAI>(); this.props = base.transform.GetComponentInChildren <mutantPropManager>(); this.propsFemale = base.transform.GetComponentInChildren <setupBodyVariation>(); this.health = base.transform.GetComponentInChildren <EnemyHealth>(); this.followSetup = base.transform.GetComponent <mutantFollowerFunctions>(); this.dayCycle = base.transform.GetComponentInChildren <mutantDayCycle>(); this.controlGo = Scene.MutantControler.gameObject; if (this.controlGo) { this.mutantControl = Scene.MutantControler; } this.spawnManager = this.controlGo.GetComponent <mutantSpawnManager>(); this.stats = base.transform.GetComponent <targetStats>(); this.waterLayer = LayerMask.NameToLayer("Water"); }