Пример #1
0
        public Character(FightingEngine game, List <Texture2D> texs, List <int> lengths) : base(game)
        {
            Animator = new Animator(new AnimationData(texs, lengths, true));
            _characterStateFactory = new CharacterStateFactory(_game, this);

            _stateMachine = new StateMachine <CharacterState>();
            _stateMachine.PushState(_characterStateFactory.Get <CharacterStateFree>());
        }