void manageThing() //use to place item { if (place.sprite != null) { Debug.Log("The place is full"); } else { place.sprite = inventory.getItem(); //place item inventory.item.GetComponent <SpriteRenderer>().sprite = null; //set our hand to nothing } }