protected virtual void EnterState(string toStateName) { EnterStateEvent?.Invoke(toStateName); }
/// <summary> /// Call this to initiate state change. /// </summary> /// <param name="toStateName"></param> /// <param name="arg"></param> protected virtual void EnterState(string toStateName, object arg = null) { EnterStateEvent?.Invoke(toStateName, arg); }
public void Enter() { EnterStateEvent?.Invoke(); }
internal void OnEnterState(string state, StateEventArg arg) { EnterStateEvent?.Invoke(state, arg); }
/// <summary> /// Invokes the Enter State Event. /// </summary> protected void InvokeEnter() { EnterStateEvent?.Invoke(); }