public void ItemOnGUIDoubleClick(ItemHandleOnGUI obj) { gameObject.SetActive(true); GameCentalPr.Instance.PlayerInputActionManager.ResetClient(this); obj.Clean(); CursorManager.GetInstance().setMouse(); }
public void ItemOnGUIDoubleClick(ItemHandleOnGUI guiObj) { if (GameCentalPr.Instance.PlayerProcessor.AddHealth(addHealth)) { guiObj.Clean(); LEInventory inventory = GetComponent <LEInventory>(); Item item = GetComponentInChildren <ItemHandleOnObj>().item; inventory.RemoveItem(item); DestroyImmediate(gameObject); } }