private void OnLevelReset(object source, GameManagementEvent gameManagementEvent) { if (gameManagementEvent.GameEvent == GameManagementEvent.GameEvents.LevelReset) { _paddleController.ResetPaddleSize(); } }
private void Awake() { _paddleTransform = transform; _paddleController = DependencyResolver.GetPaddleController(_paddleControllerParameters); _paddleController.ResetPaddleSize(); this.WeakSubscribe <PlayerPaddleMono, GameManagementEvent>(x => x.OnLevelReset); }