Beispiel #1
0
 public void Execute()
 {
     lock (lockObj)
     {
         if (hasNewData)
         {
             if (lobbyUiContext.hasMatchSearchDataForMenu)
             {
                 lobbyUiContext.RemoveMatchSearchDataForMenu();
             }
             lobbyUiContext.SetMatchSearchDataForMenu(numberOfPlayersInBattles, numberOfPlayersInQueue);
             hasNewData = false;
         }
     }
 }
Beispiel #2
0
        protected override void Execute(List <LobbyUiEntity> entities)
        {
            if (lobbyUiContext.hasStartButtonClicked)
            {
                lobbyUiContext.RemoveStartButtonClicked();
            }

            battleLoadingMenu.SetActive(false);
            matchSearchCanvas.SetActive(false);
            overlayCanvas.SetActive(true);
            gameViewsRoot.SetActive(true);


            if (lobbyUiContext.hasMatchSearchDataForMenu)
            {
                lobbyUiContext.RemoveMatchSearchDataForMenu();
            }

            lobbySoundsManager.PlayStop();
        }