67 lines
1.1 KiB
C#
67 lines
1.1 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace TG_TouchGesture
|
|
{
|
|
public class TG_TouchGestureEventArgs : EventArgs
|
|
{
|
|
private TG_ETouchGestureType m_type;
|
|
|
|
private Vector2 m_initialPosition;
|
|
|
|
private Vector2 m_position;
|
|
|
|
private Vector2 m_delta;
|
|
|
|
public TG_ETouchGestureType Type
|
|
{
|
|
get
|
|
{
|
|
return m_type;
|
|
}
|
|
}
|
|
|
|
public Vector2 InitialPosition
|
|
{
|
|
get
|
|
{
|
|
return m_initialPosition;
|
|
}
|
|
}
|
|
|
|
public Vector2 Position
|
|
{
|
|
get
|
|
{
|
|
return m_position;
|
|
}
|
|
}
|
|
|
|
public Vector2 Delta
|
|
{
|
|
get
|
|
{
|
|
return m_delta;
|
|
}
|
|
}
|
|
|
|
public TG_TouchGestureEventArgs(TG_ETouchGestureType p_type, Vector2 p_position)
|
|
: this(p_type, p_position, Vector2.zero)
|
|
{
|
|
}
|
|
|
|
public TG_TouchGestureEventArgs(TG_ETouchGestureType p_type, Vector2 p_position, Vector2 p_delta)
|
|
: this(p_type, p_position, p_position, p_delta)
|
|
{
|
|
}
|
|
|
|
public TG_TouchGestureEventArgs(TG_ETouchGestureType p_type, Vector2 p_initialPosition, Vector2 p_position, Vector2 p_delta)
|
|
{
|
|
m_type = p_type;
|
|
m_initialPosition = p_initialPosition;
|
|
m_position = p_position;
|
|
m_delta = p_delta;
|
|
}
|
|
}
|
|
}
|