public void AssignNewTarget(EncounterAgent target) { this.target = target; targetPilot = target.GetComponent <ShipPiloting>(); targetEngines = target.GetComponent <ShipEngine>(); Start(); }
private void Awake() { piloting = GetComponent <ShipPiloting>(); var col = backfireSprite.color; col.a = 0f; backfireSprite.color = col; }
private void Awake() { shipControllerInput = GetComponent <ShipPiloting> (); dockableComponent = GetComponent <Dockable>(); if (dockableComponent != null) { dockableComponent.OnShipDocked += DockableComponent_OnShipDocked; dockableComponent.OnShipUndocked += DockableComponent_OnShipUndocked; } }
private void Awake() { piloting = GetComponent <ShipPiloting>(); startAudio = audio.volume; audio.volume = 0f; }
private void Awake() { shipControllerInput = GetComponent <ShipPiloting>(); mineBuffer = new float[Enum.GetNames(typeof(RESOURCE_TYPE)).Length]; }
private void OnDisable() { CurrentShip = null; OnPlayerShipChanged(null); }
private void OnEnable() { CurrentShip = GetComponent <ShipPiloting>(); OnPlayerShipChanged(CurrentShip.gameObject); }
private void Awake() { shipControllerInput = GetComponent <ShipPiloting>(); }