// Token: 0x06001AF6 RID: 6902 RVA: 0x0008BD84 File Offset: 0x00089F84 public static ServerLoadRequest Run(PhotonServer server, Action callback) { ServerLoadRequest serverLoadRequest = new ServerLoadRequest(server, callback); serverLoadRequest.Run(); return(serverLoadRequest); }
// Token: 0x06001333 RID: 4915 RVA: 0x000705D4 File Offset: 0x0006E7D4 public IEnumerator StartUpdatingServerLoads() { foreach (PhotonServer server in this._gameServers.Values) { ServerLoadRequest request; if (!this._loadRequests.TryGetValue(server.Id, out request)) { request = ServerLoadRequest.Run(server, delegate() { this.UpdateGamesAndPlayerCount(); }); this._loadRequests.Add(server.Id, request); } if (request.RequestState != ServerLoadRequest.RequestStateType.Waiting) { request.Run(); } yield return(new WaitForSeconds(0.1f)); } yield break; }