-
Notifications
You must be signed in to change notification settings - Fork 17
OnGuiCallback
Namespace: TommoJProductions.ModApi.PlaymakerExtentions
Represents the on gui fsm state action callback.
public class OnGuiCallback : FsmStateActionCallback, HutongGames.PlayMaker.IFsmStateAction
Inheritance Object → FsmStateAction → FsmStateActionCallback → OnGuiCallback
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 GUI
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 OnGuiCallback(Action onGuiAction, bool everyFrame)
onGuiAction
Action
the action to perfrom on gui.
everyFrame
Boolean
should this on gui call be invoked every frame?
constructor
public OnGuiCallback(Func<bool> func, bool everyFrame)
func
Func<Boolean>
the action to perfrom on gui. returns weather this state action is finished or not.
everyFrame
Boolean
should this on gui call be invoked every frame?
GUI Method
public virtual void OnGUI()
The action to invoke.
public event Action onInvokeAction;
The func to invoke.
public event Func<bool> inInvokeAction;