Example #1
0
 public void OnEndPinch(PinchEventData e)
 {
     Spring();
 }
Example #2
0
 protected override void Start()
 {
     _e = new PinchEventData(eventSystem);
     base.Start();
 }
Example #3
0
        public void OnPinch(PinchEventData e)
        {
            var size = GameCamera.orthographicSize + e.PinchDelta;

            GameCamera.orthographicSize = size > ZoomMaxMax ? ZoomMaxMax : size < ZoomMinMin ? ZoomMinMin : size;
        }