Пример #1
0
 public override void RemoveController(IUIPointer controller)
 {
     if (controller is UIGazePointer)
     {
         controllerData.Remove(controller as UIGazePointer);
     }
 }
Пример #2
0
 public override void AddController(IUIPointer controller)
 {
     if (controller is UIGazePointer)
     {
         controllerData.Add(controller as UIGazePointer, new VRInputControllerData());
     }
 }
Пример #3
0
 private void initPointer(IUIPointer pointer)
 {
     VRInputModule.instance.AddController(pointer);
     pointer.Initialize();
     _pointersList.Add(pointer);
 }
Пример #4
0
 protected void UpdateCameraPosition(IUIPointer controller)
 {
     UICamera.transform.position = controller.target.transform.position;
     UICamera.transform.rotation = controller.target.transform.rotation;
 }
Пример #5
0
 abstract public void RemoveController(IUIPointer controller);
Пример #6
0
 abstract public void AddController(IUIPointer controller);
Пример #7
0
 public override void Reset()
 {
     current    = null;
     controller = null;
     base.Reset();
 }