private void Awake() { player = GameObject.FindGameObjectWithTag("Player"); eqItems = player.GetComponent <EquippedItems>(); unitStats = player.GetComponent <UnitStats>(); CreateSlot(5); }
private new void Awake() { base.Awake(); equippedItems = GameObject.Find("Player").GetComponent <EquippedItems>(); inventoryManager = GameObject.Find("InventoryPanel").GetComponent <InventoryManager>(); }