Esempio n. 1
0
 void Start()
 {
     amountText    = transform.GetChild(0).GetComponent <Text>();
     inventroy     = inv.GetComponent <Inventroy>();
     cam           = Camera.main;
     managerScript = ManagerContainer.GetComponent <containerManager>();
 }
Esempio n. 2
0
    private void Start()
    {
        //items = new Item[capacity];
        //amounts = new int[capacity];
        managerSc = manager.GetComponent <containerManager>();

        /*Item apple = Instantiate(AllItemsObject.GetChild(0)).GetComponent<Item>();
         * apple.transform.SetParent(Containerstuff);
         * items[0] = apple;
         * amounts[0] = 1;*/
        itemBaseScript = ItemBase.GetComponent <ItemBase>();
    }