Пример #1
0
        void Awake()
        {
            bdrone = GameObject.FindObjectOfType <BDrone>();

            if (bdrone)
            {
                weapons       = bdrone.weapons;
                bdestructable = bdrone.GetComponent <BDestructable>();
            }
        }
Пример #2
0
 public InputDriver(Rigidbody rb, Transform drone, BDrone bdrone)
 {
     this.rb      = rb;
     this.drone   = drone;
     this.weapons = bdrone.weapons;
 }