/// <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); } }
/// <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); } }