private void OnMouseOver() { if (Input.GetMouseButtonDown(0) && !InventoryScript.isFull) { InventoryScript.AddToInventory(itemType, gameObject.GetComponentInChildren <SpriteRenderer>().sprite); Destroy(gameObject); } }
private void OnMouseOver() { if (Input.GetMouseButtonDown(0) && !InventoryScript.isFull) { InventoryScript.AddToInventory(itemType, gameObject.GetComponentInChildren <SpriteRenderer>().sprite); Destroy(gameObject); } }