public void LoadSingleLoot(string code, int amount) { KeepLoot = false; takeAllButton.gameObject.SetActive(true); passButton.gameObject.SetActive(true); partyInventory.SetActivated(); ActionType = LootResultType.Waiting; gameObject.SetActive(true); partyInventory.DiscardAll(); foreach (var item in RaidSolver.GenerateLoot(code, amount, RaidSceneManager.Raid)) { partyInventory.DistributeItem(item); } partyInventory.DeactivateEmptySlots(); title.text = LocalizationManager.GetString("str_overlay_loot_chest_title"); description.text = LocalizationManager.GetString("str_overlay_loot_chest_description"); if (!partyInventory.HasSomething()) { Close(); } }
public void ScrollClosed() { gameObject.SetActive(false); partyInventory.DiscardAll(); if (onScrollClosed != null) { onScrollClosed(); } }