コード例 #1
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);
        }
	}
コード例 #2
0
ファイル: VRShareEvent.cs プロジェクト: 5l1v3r1/Vertigo
 // 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);
     }
 }
コード例 #3
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 );
     }
 }
コード例 #4
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 );
		}		
	}