Exemplo n.º 1
0
 private void Update()
 {
     if (Player != null && Player.GetComponent <PlayerController>().pickUp)
     {
         WeaponSlot weaponSlot = Player.GetComponentInChildren <WeaponSlot>();
         if (weapon != null && weaponSlot.weapons.Count <= weaponSlot.inventorySize)
         {
             weaponSlot.GetWeapon(weapon.name);
             //gameObject.SetActive(false);
         }
     }
 }