// Update is called once per frame public void Update() { if (m_ShareBoolScript != null) { if (m_BoolButton == null && MiddleVR.VRDeviceMgr != null) { m_BoolButton = MiddleVR.VRDeviceMgr.GetButtons(m_ShareBoolScript.ShareName); MiddleVRTools.Log("[+] Acquired shared bool button " + m_BoolButton.GetName()); } else if (m_BoolButton != null) { // Boolean to watch = m_BoolButton.IsPressed(0); } } }
// Update is called once per frame public void Update() { if ( m_ShareBoolScript != null ) { if (m_BoolButton == null && MiddleVR.VRDeviceMgr != null) { m_BoolButton = MiddleVR.VRDeviceMgr.GetButtons(m_ShareBoolScript.ShareName); MiddleVRTools.Log("[+] Acquired shared bool button " + m_BoolButton.GetName()); } else if( m_BoolButton != null ) { // Boolean to watch = m_BoolButton.IsPressed(0); } } }
// Update is called once per frame public void Update() { if (m_ShareEventScript != null) { if (m_EventButton == null && MiddleVR.VRDeviceMgr != null) { m_EventButton = MiddleVR.VRDeviceMgr.GetButtons(m_ShareEventScript.ShareName); MiddleVRTools.Log("[+] Acquired shared event button " + m_EventButton.GetName()); } else if (m_EventButton != null) { if (m_EventButton.IsPressed(0)) { // Every node receive the event VRCallbackName // this.SendMessage("FinalFunction"); m_EventButton.SetPressedState(0, false); } } } }
// Update is called once per frame public void Update() { if ( m_ShareEventScript != null ) { if (m_EventButton == null && MiddleVR.VRDeviceMgr != null) { m_EventButton = MiddleVR.VRDeviceMgr.GetButtons(m_ShareEventScript.ShareName); MiddleVRTools.Log("[+] Acquired shared event button " + m_EventButton.GetName()); } else if( m_EventButton != null ) { if( m_EventButton.IsPressed(0) ) { // Every node receive the event VRCallbackName // this.SendMessage("FinalFunction"); m_EventButton.SetPressedState(0,false); } } } }