private void Awake() { inventory = FindObjectOfType <Inventory>(); inventoryWindow = FindObjectOfType <InventoryWindow>(); image = GetComponent <Image>(); stackText = GetComponentInChildren <Text>(); canvasCamera = FindObjectOfType <Canvas>().worldCamera; }
protected override void Awake() { base.Awake(); inventoryWindow = transform.Find("panel_inventory-window").GetComponent <InventoryWindow>(); }
private void Awake() { inventoryWindow = FindObjectOfType <InventoryWindow>(); }