示例#1
0
        protected override bool DrawWizardGUI()
        {
            if (_handGrabInteractor == null)
            {
                //TODO unity might lose this reference (But still present it in the inspector)
                //during Play-Edit mode changes
                _handGrabInteractor = null;
            }

            Event e = Event.current;

            if (e.type == EventType.KeyDown &&
                e.keyCode == _recordKey)
            {
                RecordPose();
            }

            return(base.DrawWizardGUI());
        }
 private void InjectHandGrabInteractor(HandGrabInteractor handGrabInteractor)
 {
     _handGrabInteractor = handGrabInteractor;
 }
 public void InjectAll(HandGrabInteractor handGrabInteractor,
                       HandVisual handVisual)
 {
     InjectHandGrabInteractor(handGrabInteractor);
     InjectHandVisual(handVisual);
 }