// Returns true if new object could be held public bool ReleaseAnObject() { if (!holdingObject) { return(false); } Debug.Log(this.name + " trying to release " + currentObject.name); currentObject.ReleasedBy(this); holdingObject = false; currentObject = null; return(true); }