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