// ------------------------------------------------------------------------------- // ProcessStateInventory (Post Selection) // ------------------------------------------------------------------------------- protected void ProcessStateInventory() { MenuPartyInventory menu = playerItems.GetComponent <MenuPartyInventory>(); if (menu != null) { menu.ActivationRequestHandler(); } }
// ------------------------------------------------------------------------------- // LoadStateInventorySell // ------------------------------------------------------------------------------- protected void LoadStateInventorySell() { MenuPartyInventory menu = playerItems.GetComponent <MenuPartyInventory>(); menu.parent = shopOutside.GetComponent <ShopOutsidePanel>(); menu.IsSell = true; shopOutside.GetComponent <ShopOutsidePanel>().IsSell = true; shopInventoryPanel.SetActive(false); playerItems.SetActive(true); LoadState_ShopInside(false); }
// ========================= INVENTORY RELATED STATES ============================ // ------------------------------------------------------------------------------- // ShowInventory // ------------------------------------------------------------------------------- public void ShowInventory() { ActivateMenuButtons(false); MenuPartyInventory menu = playerItems.GetComponent <MenuPartyInventory>(); menu.IsSell = false; goldPanel.SetActive(true); playerItems.SetActive(true); playerParty.SetActive(true); }