private void Start()
        {
            _inventoryBehaviour = GameObject.Find("Inventory").GetComponent <InventoryBehaviour>();

            _itemPickerObject = GameObject.Find("ItemPicker").gameObject;
            _inventoryInformationPanelBehaviour = GetComponentInChildren <InventoryInformationPanelBehaviour>();

            _playerObject = GameObject.Find("Player");
        }
Esempio n. 2
0
        private void Start()
        {
            _inventorySpriteRenderer       = transform.Find("Animator/Sprite").GetComponent <SpriteRenderer>();
            _inventorySlotBackgroundSprite = transform.Find("Background").GetComponent <SpriteRenderer>().sprite;

            _inventorySlotInitialScale = transform.Find("Background").localScale;

            _animator = GetComponentInChildren <Animator>();

            _inventoryBehaviour = GameObject.Find("Inventory").GetComponent <InventoryBehaviour>();
        }