Example #1
0
 private void OnEnable()
 {
     _ballManager = FindObjectOfType <BallManager>();
     _ballManager.PlayerWinChange += OnPlayerWinChange;
     _showPauseButton.onClick.AddListener(ShowPauseButtonOnClick);
     _hidePauseButton.onClick.AddListener(HidePauseButtonOnClick);
     HidePauseButtonOnClick();
 }
Example #2
0
 private void OnEnable()
 {
     _ballManager = FindObjectOfType <BallManager>();
     _ballManager.StartGameChange += BallManagerOnStartGameChange;
 }