private void OnTriggerExit(Collider other) { HighLightedObject?.HighLight(false); HighLightedObject = null; }
private void OnTriggerEnter(Collider other) { HitLocation = other.transform.position; HighLightedObject = other.GetComponent <GrabbableBehaviour>(); HighLightedObject?.HighLight(true); }