Exemplo n.º 1
0
 public void OpenInventory()
 {
     characterSheet.gameObject.SetActive(false);
     abilityRunePane.gameObject.SetActive(false);
     inventorySheet.gameObject.SetActive(!inventorySheet.gameObject.activeInHierarchy);
     inventorySheet.CloseContext();
     //journalSheet.SetActive(false);
     YieldControl();
 }
Exemplo n.º 2
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (!GameWorldReferenceClass.GW_Player.charInventory.UseItem(characterInventoryPane.ContextIndex))
     {
         characterInventoryPane.RefreshIndex(characterInventoryPane.ContextIndex);
     }
     characterInventoryPane.CloseContext();
 }
Exemplo n.º 3
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (GameWorldReferenceClass.GW_Player.charInventory.Inventory[characterInventoryPane.ContextIndex].itemType == ItemType.Equipment)
     {
         GameWorldReferenceClass.GW_Player.doll.AddEquipment((EquipmentInventoryItem)GameWorldReferenceClass.GW_Player.charInventory.Inventory[characterInventoryPane.ContextIndex]);
         GameWorldReferenceClass.GW_Player.charInventory.Inventory.RemoveAt(characterInventoryPane.ContextIndex);
         //inventoryPane.DisplayCharacterInventory();
         characterInventoryPane.RemoveInventorySlot(characterInventoryPane.ContextIndex);
         characterInventoryPane.CloseContext();
     }
 }
Exemplo n.º 4
0
 public void OnPointerClick(PointerEventData eventData)
 {
     characterPanelScripts.quickItemSlot.SetQuickItem(GameWorldReferenceClass.GW_Player.charInventory.Inventory[characterInventoryPane.ContextIndex]);
     characterInventoryPane.CloseContext();
 }