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