// Use this for initialization
	public void Start () {
		// If server, stop. Only clients receives
		if(MiddleVR.VRClusterMgr.IsServer())
		{
			this.GetComponent<VRReceiveFloat>().enabled = false;
			return;
		}
		
        m_ShareFloatScript = (VRShareFloat)GetComponent("VRShareFloat");
	}
示例#2
0
    // Use this for initialization
    public void Start()
    {
        // If server, stop. Only clients receives
        if (MiddleVR.VRClusterMgr.IsServer())
        {
            this.GetComponent <VRReceiveFloat>().enabled = false;
            return;
        }

        m_ShareFloatScript = (VRShareFloat)GetComponent("VRShareFloat");
    }