public virtual LeapState Release(HandTypeBase h) { if (!isStatePersistent) { if (h && h.activeObj) { h.activeObj = null; } else { owner.activeObj = null; } if (this.tag == "Tool") { this.GetComponent <CapsuleCollider>().enabled = true; this.GetComponent <BoxCollider>().enabled = false; this.isStatePersistent = true; this.canRelease = false; owner.ShowHand(); } owner = null; return(new LeapGodHandState()); // each object should return a state } return(null); }