Example #1
0
        private void StartNewGameHandler()
        {
            DisposeWelcomeIfNeeded();

            _lobbyController = new LobbyController();
            _lobbyController.Start();
            _lobbyController.OpenWelcomePopup += OpenWelcomePopupHandler;
        }
Example #2
0
 private void DisposeLobbyIfNeeded()
 {
     if (_lobbyController != null)
     {
         _lobbyController.OpenWelcomePopup -= OpenWelcomePopupHandler;
         _lobbyController.Dispose();
         _lobbyController = null;
     }
 }