public override void StartTracker(HumanoidControl _humanoid) { humanoid = _humanoid; if (!enabled) { return; } if (useLeapPackage && isHeadMounted) { AddXRServiceProvider(); if (leapProvider == null) { leapProvider = Leap.Unity.Hands.Provider; } leapProvider.OnUpdateFrame -= OnUpdateFrame; leapProvider.OnUpdateFrame += OnUpdateFrame; } else { device = new LeapDevice(); device.Init(); leapTransform = device.GetTracker(); AddTracker(humanoid, "LeapMotion"); if (isHeadMounted) { SetTrackerOnCamera(); } } }
static HumanoidConfiguration() { //Debug.Log("Initializing Humanoid Dlls"); #if hLEAP LeapDevice.LoadDlls(); #endif #if hORBBEC AstraDevice.LoadDlls(); #endif #if hNEURON NeuronDevice.LoadDlls(); #endif }