using System; using System.Text; using UnityEngine; using UnityEngine.EventSystems; public class PinchEventData : BaseEventData { public PinchEventData(EventSystem eventSystem) : base(eventSystem) { } public GameObject Target { get; set; } public int Pointers { get; set; } public Vector2 Center { get; set; } public Vector2 Delta { get; set; } public Vector2 Velocity { get; set; } public float Distance { get; set; } public float ScaleDelta { get; set; } public override string ToString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendLine("target: " + this.Target); stringBuilder.AppendLine("pointers: " + this.Pointers); stringBuilder.AppendLine("center: " + this.Center); stringBuilder.AppendLine("delta: " + this.Delta); stringBuilder.AppendLine("velocity: " + this.Velocity); stringBuilder.AppendLine("distance: " + this.Distance); stringBuilder.AppendLine("scaleDelta: " + this.ScaleDelta); return stringBuilder.ToString(); } }