Esempio n. 1
0
    /// <summary>
    /// Called when the scene is loaded
    /// </summary>
    void Start()
    {
        if (GetComponent<PanelsViewer>() != null){
            pViewer = GetComponent<PanelsViewer>();
        }

        VirtualButtonBehaviour[] vbs = GetComponentsInChildren<VirtualButtonBehaviour>();
        for (int i = 0; i < vbs.Length; ++i) {
            // Register with the virtual buttons TrackableBehaviour
            vbs[i].RegisterEventHandler(this);
        }
    }
Esempio n. 2
0
    /// <summary>
    /// Called when the scene is loaded
    /// </summary>
    void Start()
    {
        if (GetComponent <PanelsViewer>() != null)
        {
            pViewer = GetComponent <PanelsViewer>();
        }

        VirtualButtonBehaviour[] vbs = GetComponentsInChildren <VirtualButtonBehaviour>();
        for (int i = 0; i < vbs.Length; ++i)
        {
            // Register with the virtual buttons TrackableBehaviour
            vbs[i].RegisterEventHandler(this);
        }
    }