Ejemplo n.º 1
0
 private void Awake()
 {
     inventory       = FindObjectOfType <Inventory>();
     inventoryWindow = FindObjectOfType <InventoryWindow>();
     image           = GetComponent <Image>();
     stackText       = GetComponentInChildren <Text>();
     canvasCamera    = FindObjectOfType <Canvas>().worldCamera;
 }
Ejemplo n.º 2
0
        protected override void Awake()
        {
            base.Awake();

            inventoryWindow = transform.Find("panel_inventory-window").GetComponent <InventoryWindow>();
        }
Ejemplo n.º 3
0
 private void Awake()
 {
     inventoryWindow = FindObjectOfType <InventoryWindow>();
 }