﻿using UnityEngine;
using System.Collections;
using HedgehogTeam.EasyTouch;

namespace HutongGames.PlayMaker.Actions
{
	[ActionCategoryAttribute("EasyTouch Setting General gesture")]
	[Tooltip("Set the swipe tolerance.")]
	public class EasyTouchSetSwipeTolerance : FsmStateAction {

		public FsmFloat tolerance;
		
		public override void Reset(){
			tolerance = null;
		}
		
		public override void OnEnter(){
			EasyTouch.SetSwipeTolerance( tolerance.Value);
			Finish();
		}
	}
}
