private void OnEnable() { for (int i = 0; i < slots.Length; i++) { backpack.AddSolt(slots[i], true); } }
private void OnTriggerStay2D(Collider2D collision) { if (MyInput.isButtonDown) { UIManager.Dialogue(text); slot.SetActive(true); backpack.AddSolt(slot, true); } }
private void OnEnable() { backpack.AddSolt(slot, true); UpdateItems(); }