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

23 lines
522 B
C#

// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.StateMachine)]
[Tooltip("Sets the target FSM for all subsequent events sent by this state. The default 'Self' sends events to this FSM.")]
public class SetEventTarget : FsmStateAction
{
public FsmEventTarget eventTarget;
public override void Reset()
{
}
public override void OnEnter()
{
Fsm.EventTarget = eventTarget;
Finish();
}
}
}