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