Files
beyond/Assets/ThirdParty/PlayMaker/Actions/StateMachine/GetEventVector2Data.cs
2024-11-20 15:21:28 +01:00

27 lines
685 B
C#

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