/// <inheritdoc /> public BrickController(BrickControllerParameters brickParameters, IDispatcher messageDispatcher, IEffectPool effectPool, ILogger logger) { _brickParameters = brickParameters; _messageDispatcher = messageDispatcher; _effectPool = effectPool; _logger = logger; }
/// <inheritdoc /> public WallController(WallControllerParameters wallParameters, IEffectPool effectPool) { _wallParameters = wallParameters; _effectPool = effectPool; }
/// <inheritdoc /> public PaddleController(PaddleControllerParameters paddleParameters, IDispatcher dispatcher, IEffectPool effectPool) { _paddleParameters = paddleParameters; _dispatcher = dispatcher; _effectPool = effectPool; }
private void InitEffectPoolInstance() { _effectPool = _effectPool ?? DependencyResolver.GetCachedEffectPool(); _effectPool.Initialize(gameObject, _secondsForEffectsPerFrame); _prevTimeSetting = _secondsForEffectsPerFrame; }