27 lines
669 B
C#
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();
|
|
}
|
|
}
|
|
} |