void Awake() { bdrone = GameObject.FindObjectOfType <BDrone>(); if (bdrone) { weapons = bdrone.weapons; bdestructable = bdrone.GetComponent <BDestructable>(); } }
public InputDriver(Rigidbody rb, Transform drone, BDrone bdrone) { this.rb = rb; this.drone = drone; this.weapons = bdrone.weapons; }