Exemplo n.º 1
0
            // Use this for initialization
            void Start()
            {
                if (0 == path.Length)
                {
                    Debug.LogError("Missing path for OrientationInterface " + gameObject.name);
                    return;
                }

                iface = OSVR.Unity.ClientKit.instance.context.getInterface(path);
                cb    = new OSVR.ClientKit.OrientationCallback(callback);
                iface.registerCallback(cb, IntPtr.Zero);
            }
Exemplo n.º 2
0
            // Use this for initialization
            void Start()
            {
                if (0 == path.Length)
                {
                    Debug.LogError("Missing path for PositionInterface " + gameObject.name);
                    return;
                }

                iface = OSVR.Unity.ClientKit.instance.context.getInterface(path);
                cb = new OSVR.ClientKit.PositionCallback(callback);
                iface.registerCallback(cb, IntPtr.Zero);
            }
Exemplo n.º 3
0
 void OnDestroy()
 {
     iface = null;
 }
Exemplo n.º 4
0
 void OnDestroy()
 {
     iface = null;
 }