Files
2024-11-20 15:21:28 +01:00

27 lines
669 B
C#

// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.StateMachine)]
[Tooltip("Gets the Float data from the last Event.")]
public class GetEventFloatData : FsmStateAction
{
[UIHint(UIHint.Variable)]
[Tooltip("Store the float data in a variable.")]
public FsmFloat getFloatData;
public override void Reset()
{
getFloatData = null;
}
public override void OnEnter()
{
getFloatData.Value = Fsm.EventData.FloatData;
Finish();
}
}
}