private void Awake() { debrisPart2[] componentsInChildren = this.debrisInterior1.GetComponentsInChildren <debrisPart2>(true); if (componentsInChildren[0]) { this.debrisInterior2 = componentsInChildren[0].gameObject; } this.timmySleepGo = this.playerSeatGo.transform.parent.FindChild("planecrash_ANIM_timmyIdle").gameObject; this.pEvents = base.transform.root.GetComponent <planeEvents>(); this.passengersScript = this.Passengers.GetComponentsInChildren <setupPassengers>(); if (LevelSerializer.IsDeserializing || !Scene.PlaneCrash || !Scene.PlaneCrash.ShowCrash) { base.enabled = false; } else if (CoopPeerStarter.DedicatedHost) { this.planeController.setPlanePosition(); this.FinalizePlanePosition(); UnityEngine.Object.Destroy(this); } }
private void Awake() { debrisPart2[] componentsInChildren = this.debrisInterior1.GetComponentsInChildren<debrisPart2>(true); if (componentsInChildren[0]) { this.debrisInterior2 = componentsInChildren[0].gameObject; } this.timmySleepGo = this.playerSeatGo.transform.parent.FindChild("planecrash_ANIM_timmyIdle").gameObject; this.pEvents = base.transform.root.GetComponent<planeEvents>(); this.passengersScript = this.Passengers.GetComponentsInChildren<setupPassengers>(); if (LevelSerializer.IsDeserializing || !Scene.PlaneCrash || !Scene.PlaneCrash.ShowCrash) { base.enabled = false; } else if (CoopPeerStarter.DedicatedHost) { this.planeController.setPlanePosition(); this.FinalizePlanePosition(); UnityEngine.Object.Destroy(this); } }