-
Notifications
You must be signed in to change notification settings - Fork 16
OnUpdateCallback
Namespace: TommoJProductions.ModApi.PlaymakerExtentions
Represents the on update fsm state action callback.
public class OnUpdateCallback : FsmStateActionCallback, HutongGames.PlayMaker.IFsmStateActionInheritance Object → FsmStateAction → FsmStateActionCallback → OnUpdateCallback
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 UPDATE
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 OnUpdateCallback(Action onUpdateAction, bool everyFrame)onUpdateAction Action
the action to perfrom on update.
everyFrame Boolean
should this on update call be invoked every frame?
constructor
public OnUpdateCallback(Func<bool> func, bool everyFrame)func Func<Boolean>
the action to perfrom on update. return weather this state action is finished or not.
everyFrame Boolean
should this on update call be invoked every frame?
update method.
public virtual void OnUpdate()The action to invoke.
public event Action onInvokeAction;The func to invoke.
public event Func<bool> inInvokeAction;