arthurdiniz0_outer-math/OuterMath Unity Project/Assets/PlayMaker/Actions/StateMachine/GetEventBoolData.cs
// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.

using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
	[ActionCategory(ActionCategory.StateMachine)]
	[Tooltip("Gets the Bool data from the last Event.")]
	public class GetEventBoolData : FsmStateAction
	{
		[UIHint(UIHint.Variable)]
        [Tooltip("Store the bool data in a variable.")]
		public FsmBool getBoolData;

		public override void Reset()
		{
			getBoolData = null;
		}

		public override void OnEnter()
		{
			getBoolData.Value = Fsm.EventData.BoolData;
			
			Finish();
		}


#if UNITY_EDITOR
        public override string AutoName()
        {
            return ActionHelpers.AutoName("GetEventFloat", getBoolData);
        }
#endif

    }
}