Esempio n. 1
0
    void Update()
    {
        Action decision = _currentState.TakeDecision(this);

        if (decision != CurrentAction)
        {
            ChangeState(decision);
        }

        _currentState?.Tick(this);
    }