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