//-------------------------------------------------
        void OnEnable()
        {
            _instance = this;

            if (SteamVR.instance != null)
            {
                ActivateRig(rigSteamVR);
            }
            else
            {
#if !HIDE_DEBUG_UI
                ActivateRig(rig2DFallback);
#endif
            }
        }
示例#2
0
 //-------------------------------------------------
 void Start()
 {
     player = VRTRIXGlovePlayer.instance;
 }