void Start() { inv = GameObject.Find("InventoryUI").GetComponent <Inventory_real>(); }
// Use this for initialization void Start() { inv = GameObject.Find("InventoryUI").GetComponent <Inventory_real>(); spareAmmo = inv.GetAmountOfItem(2); }