Пример #1
0
 public PlayerAnimation(SpriteRenderer sprite, PlayerConfig config)
 {
     _playerAnimator = new SpriteAnimator(config.KnightAnimeCnf);
     _animationSpeed = config.AnimationSpeed;
     _spriteRenderer = sprite;
     _animationState = AnimState.Idle;
     _playerAnimator.StartAnimation(_spriteRenderer, _animationState, true, _animationSpeed);
 }
Пример #2
0
 public PlayerFactory(PlayerConfig config)
 {
     _config = config;
 }
Пример #3
0
 public PlayerMovement(PlayerInitialization player, PlayerConfig config,
                       (IUserInputProxy inputHorizontal, IUserInputProxy inputVertical) input)
Пример #4
0
 public PlayerAttack(Transform player, PlayerConfig config,
                     (IUserPressButtonProxy inputSwordAttack, IUserPressButtonProxy inputFireAttack,
Пример #5
0
 public PlayerStateController(PlayerInitialization player, PlayerConfig config,
                              (IUserInputProxy inputHorizontal, IUserInputProxy inputVertical) moveInput,