void Awake() { if (instance != null) { Debug.LogWarning("More than one instance of SlotClick found"); return; } instance = this; }
private void GatherComponents() { inventory = GetComponent <Inventory>(); shop = GetComponent <ShopInventory>(); qntyPrompt = GetComponent <QuantityPrompt>(); invSlotClick = GetComponent <InvSlotClick>(); equipSlotClick = GetComponent <EquipSlotClick>(); shopSlotClick = GetComponent <ShopSlotClick>(); slotClickHelpers = GetComponent <SlotClickHelpers>(); invToggle = GetComponent <InventoryToggle>(); shopDialogue = GetComponent <ShopDialogue>(); checkInvSpace = GetComponent <CheckInventorySpace>(); }