protected virtual void OnTriggerExit(Collider other) { if (!CheckObject(other.gameObject)) { return; } Reset(); TrackedHand script = other.gameObject.GetComponent <TrackedHand>(); if (script != null) { script.Unsubscribe(this); } }
protected virtual bool OnTriggerExit(Collider other) { if (!checkCollider(other)) { return(false); } Reset(); TrackedHand script = other.gameObject.GetComponent <TrackedHand>(); if (script != null) { script.Unsubscribe(this); } return(true); }