Exemplo n.º 1
0
 public ThrowState(
     IPlayer player,
     IPillow pillow,
     IInputManager inputManager,
     IPlayerSettings playerSettings,
     PlayerMovement.Factory playerMovementFactory,
     WalkState.Factory walkStateFactory
     )
 {
     this.player           = player;
     this.pillow           = pillow;
     this.inputManager     = inputManager;
     this.playerSettings   = playerSettings;
     this.playerMovement   = playerMovementFactory.Create(player);
     this.walkStateFactory = walkStateFactory;
 }
Exemplo n.º 2
0
 public PillowCarryState(
     IPlayer player,
     IPillow pillow,
     PlayerMovement.Factory playerMovementFactory,
     IInputManager inputManager,
     WalkState.Factory walkStateFactory,
     ThrowState.Factory throwStateFactory
     )
 {
     this.player            = player;
     this.pillow            = pillow;
     this.playerMovement    = playerMovementFactory.Create(player);
     this.inputManager      = inputManager;
     this.walkStateFactory  = walkStateFactory;
     this.throwStateFactory = throwStateFactory;
 }