示例#1
0
 public CameraHeightKeyHandler
 (
     IGameValueService gameValueService,
     IActionLoopServiceFactory actionLoopServiceFactory,
     CameraHeightKeys cameraHeightKeys,
     float cameraMovementOffset
 )
 {
     _gameValueService    = gameValueService;
     _actionLoopService   = actionLoopServiceFactory.CreateActionLoopService();
     _cameraHeightKeys    = cameraHeightKeys;
     CameraMovementOffset = cameraMovementOffset;
 }
 public IKeyHandler CreateCameraHeightHandler(IGameValueService gameValueService, CameraHeightKeys cameraHeightKeys, float cameraMovementOffset)
 {
     return(new CameraHeightKeyHandler(gameValueService, _actionLoopServiceFactory, cameraHeightKeys, cameraMovementOffset));
 }