-
Notifications
You must be signed in to change notification settings - Fork 16
OnEnterCallback
Namespace: TommoJProductions.ModApi.PlaymakerExtentions
Represents the on enter state action callback
public class OnEnterCallback : FsmStateActionCallback, HutongGames.PlayMaker.IFsmStateActionInheritance Object → FsmStateAction → FsmStateActionCallback → OnEnterCallback
Implements IFsmStateAction
The current delegate.
public Delegate action;Represents if should loop this untill state is inactive.
public bool everyFrame;caches the action method name that is subbed to this action callback.
public string debugActionName;Represents the callback type. ON ENTER
public virtual CallbackType callbackType { get; }public string Name { get; set; }public Fsm Fsm { get; set; }Fsm
public GameObject Owner { get; set; }GameObject
public FsmState State { get; set; }FsmState
public virtual bool Enabled { get; set; }public bool IsOpen { get; set; }public bool Entered { get; set; }public bool Finished { get; set; }public bool Active { get; set; }Constructor
public OnEnterCallback(Action action, bool everyFrame)action Action
the action to perfrom on enter.
everyFrame Boolean
should this on fixed enter call be invoked every frame?
Constructor
public OnEnterCallback(Func<bool> func, bool everyFrame)func Func<Boolean>
the action to perfrom on enter. returns weather this state action is finished or not.
everyFrame Boolean
should this on fixed enter call be invoked every frame?
On Enter Method.
public virtual void OnEnter()The action to invoke.
public event Action onInvokeAction;The func to invoke.
public event Func<bool> inInvokeAction;