public override void RemoveController(IUIPointer controller) { if (controller is UIGazePointer) { controllerData.Remove(controller as UIGazePointer); } }
public override void AddController(IUIPointer controller) { if (controller is UIGazePointer) { controllerData.Add(controller as UIGazePointer, new VRInputControllerData()); } }
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);
public override void Reset() { current = null; controller = null; base.Reset(); }