public override void onRaycastEnter() { if (_dialogShowing) { _dialogTimeout = Timeout; return; } if (_interactableElement == null) { _interactableElement = Instantiate(InteractElement, InteractInstanciationPosition); } InteractableManager interactableManager = _interactableElement.gameObject.GetComponentInChildren <InteractableManager>(); interactableManager.SetInteractableName(npcData.Name); interactableManager.StartInteractable(); _interactableShowing = true; _interactableTimeout = Timeout; }