Exemple #1
0
 private void OnDestroy()
 {
     EventCoordinator.UnregisterEventListener <ReactorOverchargeBeginEventInfo>(OverChargeReactorStart);
     EventCoordinator.UnregisterEventListener <ReactorOverchargeEndEventInfo>(OverChargeReactorStop);
     EventCoordinator.UnregisterEventListener <TransferToMainHeatSinkEventInfo>(AddDrainedHeat);
     EventCoordinator.UnregisterEventListener <FlushCoolantEventInfo>(FlushCoolant);
     EventCoordinator.RegisterEventListener <CoolantRefillStatusEventInfo>(RefillCoolant);
 }
Exemple #2
0
 private void OnDestroy()
 {
     if (!malfunction)
     {
         EventCoordinator.UnregisterEventListener <CoolingSystemMalfunctionEventInfo>(Malfunction);
         EventCoordinator.UnregisterEventListener <IncreaseHeatEventInfo>(IncreaseHeat);
     }
 }
Exemple #3
0
    private void LaneTargetUpdatedListener(EventInfo ei)
    {
        LaneTargetUpdatedEventInfo ltuei = (LaneTargetUpdatedEventInfo)ei;

        if (ltuei.NewTarget == gameObject)
        {
            stationTargetedEvent.Invoke();
            EventCoordinator.UnregisterEventListener <LaneTargetUpdatedEventInfo>(LaneTargetUpdatedListener);
        }
    }
Exemple #4
0
 private void OnDestroy()
 {
     EventCoordinator.UnregisterEventListener <GateDestroyedEventInfo>(Destroyed);
     EventCoordinator.UnregisterEventListener <AdjustDoorEventInfo>(AdjustDoor);
 }
Exemple #5
0
 private void OnDisable()
 {
     EventCoordinator.UnregisterEventListener <LaneTargetUpdatedEventInfo>(LaneTargetUpdatedListener);
 }
Exemple #6
0
 private void Malfunction(EventInfo ei)
 {
     malfunction = true;
     EventCoordinator.UnregisterEventListener <CoolingSystemMalfunctionEventInfo>(Malfunction);
     EventCoordinator.UnregisterEventListener <IncreaseHeatEventInfo>(IncreaseHeat);
 }
Exemple #7
0
 void OnDestroy()
 {
     EventCoordinator.UnregisterEventListener <EnemyDiedEventInfo>(EnemyDied);
     EventCoordinator.UnregisterEventListener <GateDestroyedEventInfo>(GateDestroyed);
 }
 private void OnDestroy()
 {
     EventCoordinator.UnregisterEventListener <DetatchArmorEventInfo>(DetatchArmorePlate);
 }