private void OnTriggerEnter(Collider other) { InteractionUser user = other.GetComponent <InteractionUser>(); if (user != null && IsFacingMe(other.transform)) { user.Select(this); } }
private void OnTriggerStay(Collider other) { InteractionUser user = other.GetComponent <InteractionUser>(); if (user != null) { if (IsFacingMe(other.transform)) { user.Select(this); } else { user.Unselect(this); } } }