private void Start() { _inventoryBehaviour = GameObject.Find("Inventory").GetComponent <InventoryBehaviour>(); _itemPickerObject = GameObject.Find("ItemPicker").gameObject; _inventoryInformationPanelBehaviour = GetComponentInChildren <InventoryInformationPanelBehaviour>(); _playerObject = GameObject.Find("Player"); }
private void Start() { _slots = GetComponentsInChildren <InventorySlotBehaviour>(); _nearbyItems = new List <ItemBehaviour>(); _inventorySlotIndicatorBehaviour = GetComponentInChildren <InventorySlotIndicatorBehaviour>(); _inventoryInformationPanelBehaviour = GetComponentInChildren <InventoryInformationPanelBehaviour>(); _inventoryInformationPanelBehaviour.Hide(); _inventoryInformationPanelBehaviour.transform.position = _inventoryInformationPanelBehaviour.transform.position += new Vector3(0.0f, 5.0f, 0.0f); _player = GameObject.Find("Player"); }