protected virtual void Start() { isServer = UnityEngine.Networking.NetworkServer.active; if (!vehicleSeat) { vehicleSeat = gameObject.GetComponent <SurvivorPodController>().vehicleSeat; } if (addExitAction) { vehicleSeat.onPassengerExit += VehicleSeat_onPassengerExit; } if (addLandingAction) { if (vehicleSeat.ejectOnCollision) { onRoboPodLandedServer += PersonalizePodPlugin_onPodLandedServer; if (roboCrateDropBattery) { onRoboPodLandedServer += PodComponent_onRoboPodLandedServer; } } else { PersonalizePodPlugin.onPodLandedServer += PersonalizePodPlugin_onPodLandedServer; } } podController = vehicleSeat.GetComponent <SurvivorPodController>(); }
// Token: 0x060004A3 RID: 1187 RVA: 0x0001351B File Offset: 0x0001171B public override void OnEnter() { base.OnEnter(); this.survivorPodController = base.GetComponent <SurvivorPodController>(); if (!this.survivorPodController && base.isAuthority) { this.outer.SetNextStateToMain(); } }
// Token: 0x06002C21 RID: 11297 RVA: 0x000BA548 File Offset: 0x000B8748 public override void OnEnter() { base.OnEnter(); this.survivorPodController = base.GetComponent <SurvivorPodController>(); SurvivorPodController survivorPodController = this.survivorPodController; this.vehicleSeat = ((survivorPodController != null) ? survivorPodController.vehicleSeat : null); if (!this.survivorPodController && base.isAuthority) { this.outer.SetNextStateToMain(); } }