Esempio n. 1
0
 public void Equip(BasicWeapon weapon)
 {
     foreach(var mount in _mounts)
     {
         mount.Equip(weapon);
     }
 }
 public void Equip(BasicWeapon weaponPrefab)
 {
     if(_weapon != null)
     {
         Destroy(_weapon.gameObject);
     }
     _weapon = (BasicWeapon)Instantiate (weaponPrefab);
 }