void Start() { _input = new InputWrapper(); _dragGesture = new InputKit.DragGesture(_input); _dragGesture.DragHandler = OnDrag; _pinchGesture = new InputKit.PinchGesture(_input); _pinchGesture.PinchHandler = OnPinch; }
public void InitInteractive(Camera mapCamera, HexMapLayout layout) { CameraPitch = MapCamera.transform.localEulerAngles.x; _input = new InputWrapper(); _dragGesture = new InputKit.DragGesture(_input); _dragGesture.DragHandler = OnDrag; _dragGesture.DragEndHandler = OnDragEnd; _dragGesture.DragBeginHandler = OnDragBegin; _dragGesture.TouchDownHandler = delegate() { isInertia = false; }; _pinchGesture = new InputKit.PinchGesture(_input); _pinchGesture.PinchHandler = OnPinch; _pinchGesture.PinchEndHandler = OnPinchEnd; _pinchGesture.PinchBeginHandler = OnPinchBegin; _clickGesture = new InputKit.ClickGesture(_input); _clickGesture.ClickHandler = OnClick; }