-
Notifications
You must be signed in to change notification settings - Fork 16
OnFixedUpdateCallback
Namespace: TommoJProductions.ModApi.PlaymakerExtentions
Represents the on fixed update state action callback
public class OnFixedUpdateCallback : FsmStateActionCallback, HutongGames.PlayMaker.IFsmStateActionInheritance Object → FsmStateAction → FsmStateActionCallback → OnFixedUpdateCallback
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 FIXED 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 OnFixedUpdateCallback(Action onFixedUpdate, bool everyFrame)onFixedUpdate Action
fixedupdate action
everyFrame Boolean
should this on fixed update call be invoked every frame?
Constructor
public OnFixedUpdateCallback(Func<bool> func, bool everyFrame)func Func<Boolean>
the action to perfrom on fixed update. returns weather this state action is finished or not.
everyFrame Boolean
should this on fixed update call be invoked every frame?
Fixed Update Method
public virtual void OnFixedUpdate()The action to invoke.
public event Action onInvokeAction;The func to invoke.
public event Func<bool> inInvokeAction;