private void OnDestroy() { EventCoordinator.UnregisterEventListener <ReactorOverchargeBeginEventInfo>(OverChargeReactorStart); EventCoordinator.UnregisterEventListener <ReactorOverchargeEndEventInfo>(OverChargeReactorStop); EventCoordinator.UnregisterEventListener <TransferToMainHeatSinkEventInfo>(AddDrainedHeat); EventCoordinator.UnregisterEventListener <FlushCoolantEventInfo>(FlushCoolant); EventCoordinator.RegisterEventListener <CoolantRefillStatusEventInfo>(RefillCoolant); }
private void OnDestroy() { if (!malfunction) { EventCoordinator.UnregisterEventListener <CoolingSystemMalfunctionEventInfo>(Malfunction); EventCoordinator.UnregisterEventListener <IncreaseHeatEventInfo>(IncreaseHeat); } }
private void LaneTargetUpdatedListener(EventInfo ei) { LaneTargetUpdatedEventInfo ltuei = (LaneTargetUpdatedEventInfo)ei; if (ltuei.NewTarget == gameObject) { stationTargetedEvent.Invoke(); EventCoordinator.UnregisterEventListener <LaneTargetUpdatedEventInfo>(LaneTargetUpdatedListener); } }
private void OnDestroy() { EventCoordinator.UnregisterEventListener <GateDestroyedEventInfo>(Destroyed); EventCoordinator.UnregisterEventListener <AdjustDoorEventInfo>(AdjustDoor); }
private void OnDisable() { EventCoordinator.UnregisterEventListener <LaneTargetUpdatedEventInfo>(LaneTargetUpdatedListener); }
private void Malfunction(EventInfo ei) { malfunction = true; EventCoordinator.UnregisterEventListener <CoolingSystemMalfunctionEventInfo>(Malfunction); EventCoordinator.UnregisterEventListener <IncreaseHeatEventInfo>(IncreaseHeat); }
void OnDestroy() { EventCoordinator.UnregisterEventListener <EnemyDiedEventInfo>(EnemyDied); EventCoordinator.UnregisterEventListener <GateDestroyedEventInfo>(GateDestroyed); }
private void OnDestroy() { EventCoordinator.UnregisterEventListener <DetatchArmorEventInfo>(DetatchArmorePlate); }