protected virtual void EnterState(string toStateName)
 {
     EnterStateEvent?.Invoke(toStateName);
 }
Example #2
0
 /// <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);
 }
Example #3
0
 public void Enter()
 {
     EnterStateEvent?.Invoke();
 }
Example #4
0
 internal void OnEnterState(string state, StateEventArg arg)
 {
     EnterStateEvent?.Invoke(state, arg);
 }
Example #5
0
 /// <summary>
 /// Invokes the Enter State Event.
 /// </summary>
 protected void InvokeEnter()
 {
     EnterStateEvent?.Invoke();
 }