private IEnumerator LoadMap() { string mapLocationString = ""; if (Properties.Web) { mapLocationString = JavaScriptUtils.GetMapLocationString(); if (!string.IsNullOrEmpty(mapLocationString)) { mapLocationString = WebLinkUtils.ParseToDirectDownloadLink(mapLocationString); } } if (!string.IsNullOrEmpty(mapLocationString)) { text.text = "Loading map from web address"; yield return(GameManager.Instance.LoadMap(new Uri(mapLocationString))); } else if ((Application.isEditor || Debug.isDebugBuild) && DebugManager.Instance.LoadTestMap) { text.text = "Loading debug map"; string fullTestMapLocation = Path.Combine(Application.streamingAssetsPath, "./Special/Maps/Test Map.MAP"); yield return(GameManager.Instance.LoadMap(new Uri(fullTestMapLocation))); } else { text.text = "Creating map"; GameManager.Instance.CreateNewMap(25, 25); } }