Example #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);
 }
Example #2
0
 public PlayerFactory(PlayerConfig config)
 {
     _config = config;
 }
Example #3
0
 public PlayerMovement(PlayerInitialization player, PlayerConfig config,
                       (IUserInputProxy inputHorizontal, IUserInputProxy inputVertical) input)
Example #4
0
 public PlayerAttack(Transform player, PlayerConfig config,
                     (IUserPressButtonProxy inputSwordAttack, IUserPressButtonProxy inputFireAttack,
Example #5
0
 public PlayerStateController(PlayerInitialization player, PlayerConfig config,
                              (IUserInputProxy inputHorizontal, IUserInputProxy inputVertical) moveInput,