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