// Start is called before the first frame update void Start() { startPos = transform.position; timelaps = 1 / timeToClose; EventCoordinator.RegisterEventListener <GateDestroyedEventInfo>(Destroyed); EventCoordinator.RegisterEventListener <AdjustDoorEventInfo>(AdjustDoor); }
void Start() { EventCoordinator.RegisterEventListener <PickUpEventInfo>(MechActivation); EventCoordinator.RegisterEventListener <DropItemEventInfo>(MechDeactivation); cameraTransform = Camera.main.transform; mech.rotation = Quaternion.Euler(0, cameraTransform.rotation.eulerAngles.y, 0); joysticksteering.actionSet.Activate(); }
private void OnDestroy() { EventCoordinator.UnregisterEventListener <ReactorOverchargeBeginEventInfo>(OverChargeReactorStart); EventCoordinator.UnregisterEventListener <ReactorOverchargeEndEventInfo>(OverChargeReactorStop); EventCoordinator.UnregisterEventListener <TransferToMainHeatSinkEventInfo>(AddDrainedHeat); EventCoordinator.UnregisterEventListener <FlushCoolantEventInfo>(FlushCoolant); EventCoordinator.RegisterEventListener <CoolantRefillStatusEventInfo>(RefillCoolant); }
void Start() { EventCoordinator.RegisterEventListener <ReactorOverchargeBeginEventInfo>(OverChargeReactorStart); EventCoordinator.RegisterEventListener <ReactorOverchargeEndEventInfo>(OverChargeReactorStop); EventCoordinator.RegisterEventListener <TransferToMainHeatSinkEventInfo>(AddDrainedHeat); EventCoordinator.RegisterEventListener <FlushCoolantEventInfo>(FlushCoolant); EventCoordinator.RegisterEventListener <CoolantRefillStatusEventInfo>(RefillCoolant); currentCoolant = maxCoolant; currentCoolant = 1000; }
// Start is called before the first frame update void Start() { cd = 60 / rpm; currentAmmo = ammo; float customBalanceDamage = GameController.GetBalanceVariable(BalanceFileHolder.BalanceVariableNames.turret_damage); if (customBalanceDamage >= 0.0f) { damage = customBalanceDamage; } EventCoordinator.RegisterEventListener <EnemyDiedEventInfo>(EnemyDied); EventCoordinator.RegisterEventListener <GateDestroyedEventInfo>(GateDestroyed); }
new void Start() { base.Start(); EventCoordinator.RegisterEventListener <AssignTargetToRepairEventInfo>(SendDronesToRepair); stationActivated += ActivateRepairDrone; stationDeactivated += DeactivateRepairDrone; targetToRepair = stations[0]; foreach (Transform trans in stablePos) { GameObject drone = Instantiate(dronePrefab); drone.transform.position = trans.position; drone.GetComponent <RepairDrone>().Stable = trans.position; drones.Add(trans.position, drone); } }
new protected void Awake() { base.Awake(); EventCoordinator.RegisterEventListener <LaneTargetUpdatedEventInfo>(LaneTargetUpdatedListener); }
// Start is called before the first frame update void Start() { EventCoordinator.RegisterEventListener <DamageEventInfo>(TakeDamage); }
// Start is called before the first frame update void Start() { EventCoordinator.RegisterEventListener <CoolingSystemMalfunctionEventInfo>(Malfunction); EventCoordinator.RegisterEventListener <IncreaseHeatEventInfo>(IncreaseHeat); }
// Start is called before the first frame update void Start() { EventCoordinator.RegisterEventListener <DetatchArmorEventInfo>(DetatchArmorePlate); }
// Start is called before the first frame update void Start() { EventCoordinator.RegisterEventListener <RepairingDoneEventInfo>(DoneWithRepair); }