using UnityEngine;
using System.Collections;
namespace ProjectX
{
public class InputTarget : MonoBehaviour
{
///
/// press event is sent when finger pressed screen or mouse button down.
///
public InputEvent onPress = new InputEvent();
///
/// Release event is sent when finger left screen or mouse button up.
///
public InputEvent onRelease = new InputEvent();
///
/// Click event is sent when pressed and the released at the same object.
///
public InputEvent onClick = new InputEvent();
///
/// Finger or mouse is moving(dragging) on screen. This event is sent to the event target.
///
public InputEvent onMove = new InputEvent();
void Start()
{
InputDetection.handlers.Add(this);
}
void OnDestroy()
{
InputDetection.handlers.Remove(this);
}
}
}