// Update is called once per frame public void Update () { if( m_EventButton == null && MiddleVR.VRDeviceMgr != null ) { m_EventButton = MiddleVR.VRDeviceMgr.CreateButtons(ShareName); m_EventButton.SetButtonsNb(1); MiddleVRTools.Log("[+] Created shared event button " + ShareName ); MiddleVR.VRClusterMgr.AddSynchronizedObject(m_EventButton, 0); } }
// Update is called once per frame public void Update() { if (m_EventButton == null && MiddleVR.VRDeviceMgr != null) { m_EventButton = MiddleVR.VRDeviceMgr.CreateButtons(ShareName); m_EventButton.SetButtonsNb(1); MiddleVRTools.Log("[+] Created shared event button " + ShareName); MiddleVR.VRClusterMgr.AddSynchronizedObject(m_EventButton, 0); } }
// Update is called once per frame public void Update() { if (m_BoolButton == null && MiddleVR.VRDeviceMgr != null) { m_BoolButton = MiddleVR.VRDeviceMgr.CreateButtons(ShareName); m_BoolButton.SetButtonsNb(1); MiddleVRTools.Log("[+] Created shared bool button " + ShareName); MiddleVR.VRClusterMgr.AddSynchronizedObject(m_BoolButton, 0); } else if (MiddleVR.VRClusterMgr.IsServer() && m_BoolButton != null) { // m_BoolButton.SetPressedState(0, Boolean to watch ); } }
// Update is called once per frame public void Update () { if( m_BoolButton == null && MiddleVR.VRDeviceMgr != null ) { m_BoolButton = MiddleVR.VRDeviceMgr.CreateButtons(ShareName); m_BoolButton.SetButtonsNb(1); MiddleVRTools.Log("[+] Created shared bool button " + ShareName ); MiddleVR.VRClusterMgr.AddSynchronizedObject(m_BoolButton, 0); } else if( MiddleVR.VRClusterMgr.IsServer() && m_BoolButton != null ) { // m_BoolButton.SetPressedState(0, Boolean to watch ); } }