Exemplo n.º 1
0
    public virtual void StopSearchingMatchGames(bool enforce = true)
    {
        this._connecting = false;
        UFE.multiplayerAPI.OnMatchesDiscovered   -= this.OnMatchesDiscovered;
        UFE.multiplayerAPI.OnMatchDiscoveryError -= this.OnMatchDiscoveryError;

        if (enforce)
        {
            UFE.FindAndRemoveDelayLocalAction(StartSearchingGames);
        }
        UFE.multiplayerAPI.StopSearchingMatches();
        this._foundMatches.Clear();
    }