private void Awake() { interactableObject = GetComponent <VRTK_InteractableObject>(); highlighter = GetComponent <VRTK_InteractObjectHighlighter>(); flashUntilNear = GetComponent <FlashUntilNear>(); if (!canUse) { DisallowUse(); } }
protected override void Start() { base.Start(); words = textToEnter.Split(' '); flash = keyboard.GetComponent <FlashUntilNear>(); keyboard.InteractableObjectUsed += Keyboard_Used; keyboard.InteractableObjectUntouched += Keyboard_Untouched; }