Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     startPos = transform.position;
     timelaps = 1 / timeToClose;
     EventCoordinator.RegisterEventListener <GateDestroyedEventInfo>(Destroyed);
     EventCoordinator.RegisterEventListener <AdjustDoorEventInfo>(AdjustDoor);
 }
Example #2
0
 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();
 }
Example #3
0
 private void OnDestroy()
 {
     EventCoordinator.UnregisterEventListener <ReactorOverchargeBeginEventInfo>(OverChargeReactorStart);
     EventCoordinator.UnregisterEventListener <ReactorOverchargeEndEventInfo>(OverChargeReactorStop);
     EventCoordinator.UnregisterEventListener <TransferToMainHeatSinkEventInfo>(AddDrainedHeat);
     EventCoordinator.UnregisterEventListener <FlushCoolantEventInfo>(FlushCoolant);
     EventCoordinator.RegisterEventListener <CoolantRefillStatusEventInfo>(RefillCoolant);
 }
Example #4
0
 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;
 }
Example #5
0
    // 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);
    }
Example #6
0
    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);
        }
    }
Example #7
0
 new protected void Awake()
 {
     base.Awake();
     EventCoordinator.RegisterEventListener <LaneTargetUpdatedEventInfo>(LaneTargetUpdatedListener);
 }
Example #8
0
 // Start is called before the first frame update
 void Start()
 {
     EventCoordinator.RegisterEventListener <DamageEventInfo>(TakeDamage);
 }
Example #9
0
 // Start is called before the first frame update
 void Start()
 {
     EventCoordinator.RegisterEventListener <CoolingSystemMalfunctionEventInfo>(Malfunction);
     EventCoordinator.RegisterEventListener <IncreaseHeatEventInfo>(IncreaseHeat);
 }
Example #10
0
 // Start is called before the first frame update
 void Start()
 {
     EventCoordinator.RegisterEventListener <DetatchArmorEventInfo>(DetatchArmorePlate);
 }
Example #11
0
 // Start is called before the first frame update
 void Start()
 {
     EventCoordinator.RegisterEventListener <RepairingDoneEventInfo>(DoneWithRepair);
 }