Ejemplo n.º 1
0
    /// <summary>
    /// When the controller enters another collider
    /// do the necessary interctions
    /// </summary>
    /// <param name="p_collider">P collider.</param>
    void OnTriggerEnter(Collider p_collider)
    {
        VRHoverable hover = p_collider.GetComponent <VRHoverable> ( );

        if (hover)
        {
            hover.HoverStarted( );
        }

        VRButton button = p_collider.GetComponent <VRButton> ( );

        if (button)
        {
            button.ButtonHoverStart( );
        }
    }