Exemple #1
0
    private IEnumerator WaitForBanSelection(System.Func <List <int> > GetSelected)
    {
        yield return(new WaitUntil(() => hostActionConfirmed || hostActionCancelled));

        if (hostActionConfirmed)
        {
            List <int> selectedPlayers = GetSelected();
            lobbyManager.BanPlayers(selectedPlayers);
        }

        hostActionConfirmed = false;
        hostActionCancelled = false;
    }