private void GameplayManagerGameInitialized() { _playerEventListener?.Dispose(); _opponentEventListener?.Dispose(); _playerEventListener = new PlayerEventListener(_gameplayManager.CurrentPlayer, false); _opponentEventListener = new PlayerEventListener(_gameplayManager.OpponentPlayer, true); _playerEventListener.OnGameInitializedEventHandler(); _analyticsManager.NotifyStartedMatch(); }
public void UnregisterListener(PlayerEventListener listener) { listeners.Remove(listener); }
public void RegisterListener(PlayerEventListener listener) { listeners.Add(listener); }
public void UnregisterListener(PlayerEventListener PEL) { listeners.Remove(PEL); }
public void RegisterListener(PlayerEventListener PEL) { listeners.Add(PEL); }