/// <summary> /// This function is called on the Interactable as the interactable enters the players interact zone /// </summary> void OnTriggerEnter( Collider col ){ //TODO: Add detection for which interactable is in focus if several objects are within the zone. Interactable ii = col.gameObject.GetComponent<Interactable>(); if( ii != null && ii.enabled ){ r_InFocus = ii; r_CachedFocus = ii; r_InFocus.gainFocus(); setupInteractText(); r_GUIManager.interactTextActive( true ); } }