public void UpAction()
{
if (!gridLogic.disabled && swiping) {
// not the same place, do swiping action
Vector2 diff = (Vector2)selected.transform.position - (Vector2)Camera.main.ScreenToWorldPoint(InputHandler.Instance.inputVectorScreen);
if (Mathf.Abs(diff.x) >= OFFSET) {
//Action was a long enough drag, do the action
if (diff.x > 0)
Flood();
else
Destroy();
}
}
Deselect();
}