public void OnExit(Collider other) { if (other.CompareTag("GameController")) { HandController hand = other.gameObject.GetComponent <HandController>(); hand.ExitObject(gameObject); } else { OnOtherExit(other); } }