Esempio n. 1
0
 void IInputClickHandler.OnInputClicked(InputClickedEventData eventData)
 {
     //browser.forceClick();
     // Just performing a tagalong action
     if (interactibleAction != null)
     {
         interactibleAction.PerformAction();
     }
 }
Esempio n. 2
0
    void IInputClickHandler.OnInputClicked(InputClickedEventData eventData)
    {
        // Play the audioSource feedback when we gaze and select a hologram.
        if (audioSource != null && !audioSource.isPlaying)
        {
            audioSource.Play();
        }

        /* TODO: DEVELOPER CODING EXERCISE 6.a */
        // 6.a: Uncomment the lines below to perform a Tagalong action.
        if (interactibleAction != null)
        {
            interactibleAction.PerformAction();
        }
    }