void Start() { playerWallet = ScriptToolbox.GetInstance().GetPlayerWallet(); inv = InventoryManager.GetInstance().GetInventory(); shop = InventoryManager.GetInstance().GetShopInventory(); shopDialogue = InventoryManager.GetInstance().GetShopDialogue(); qntyPrompt = InventoryManager.GetInstance().GetQuantityPrompt(); psm = ScriptToolbox.GetInstance().GetPlayerManager().playerStateMachine; }
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>(); }