Пример #1
0
        // public event Action<BaseState> OnStateChanged;

        public void SetStates(Dictionary <Type, BaseState> states)
        {
            availableStates = states;
            currentState    = availableStates.Values.First();
        }