void CheckWorldStatus(string worldId, Action onCheckComplete) { // check if world has been previously uploaded, and if world is in community labs ApiWorld.FetchUploadedWorlds( delegate (IEnumerable<ApiWorld> worlds) { ApiWorld selectedWorld = worlds.FirstOrDefault(w => w.id == worldId); if (null!=selectedWorld) { IsCurrentWorldInCommunityLabs = selectedWorld.IsCommunityLabsWorld; IsCurrentWorldPubliclyPublished = selectedWorld.IsPublicPublishedWorld; IsCurrentWorldUploaded = true; } if (onCheckComplete != null) onCheckComplete(); }, delegate (string err) { IsCurrentWorldInCommunityLabs = false; IsCurrentWorldUploaded = false; IsCurrentWorldPubliclyPublished = false; Debug.Log("CheckWorldStatus error:" + err); if (onCheckComplete != null) onCheckComplete(); } ); }