void openbag() { if (Input.GetKeyDown(KeyCode.O)) { isopenbag = !isopenbag; mybag.SetActive(isopenbag); InventoryMG.reflashbag(0); //InventoryMG.OpenBag(); } isopenbag = mybag.activeSelf; }
private void PutToEquipPos(item thisitem, int itemid, int slotid) { //if (itemid == slotid) //{ item RemovedEquip = EquipMG.GetEquipFromBag(thisitem, slotid); if (RemovedEquip != null) { InventoryMG.MGAddToBag(RemovedEquip, 0); } thisitem.itemHeld -= 1; InventoryMG.reflashbag(0); //} }