public void AssignNewTarget(EncounterAgent target)
 {
     this.target   = target;
     targetPilot   = target.GetComponent <ShipPiloting>();
     targetEngines = target.GetComponent <ShipEngine>();
     Start();
 }
示例#2
0
    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;
 }
示例#5
0
 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);
 }
示例#8
0
 private void Awake()
 {
     shipControllerInput = GetComponent <ShipPiloting>();
 }