Example #1
0
 public void Transition(GState nextState)
 {
     Debug.Log($"Transitioning states. Next state: {nextState.currentStateName}.");
     this.nextState     = nextState;
     this.nextStateName = nextState.currentStateName;
     stateStage         = EVENT.EXIT;
 }
Example #2
0
 private void Update()
 {
     currentState = currentState.Process();
 }
Example #3
0
        private void Start()
        {
            var data = new GStateData();

            currentState = new Idle(data);
        }