﻿
using HutongGames.PlayMaker;

namespace SRDebugger.Playmaker.Actions
{

	[ActionCategory("SRDebugger")]
	[Tooltip("Enable or disable the built-in trigger button.")]
	public class SetTriggerEnabled : FsmStateAction
	{

		[Tooltip("True to enable the trigger, false to disable.")]
		[RequiredField]
		public FsmBool enable;

		public override void OnEnter()
		{
			SRDebug.Instance.IsTriggerEnabled = enable.Value;
			Finish();
		}

	}

}