Пример #1
0
 private void OnLevelReset(object source, GameManagementEvent gameManagementEvent)
 {
     if (gameManagementEvent.GameEvent == GameManagementEvent.GameEvents.LevelReset)
     {
         _paddleController.ResetPaddleSize();
     }
 }
Пример #2
0
 private void Awake()
 {
     _paddleTransform  = transform;
     _paddleController = DependencyResolver.GetPaddleController(_paddleControllerParameters);
     _paddleController.ResetPaddleSize();
     this.WeakSubscribe <PlayerPaddleMono, GameManagementEvent>(x => x.OnLevelReset);
 }