Example #1
0
    private IEnumerator LoadMap(string mapName, string linkingPortalName)
    {
        loader.ActiveFadeIn();
        yield return(new WaitUntil(() => loader.FadedValue >= 1f));

        mapLoader.LoadMap(mapName, linkingPortalName);
        yield return(new WaitUntil(() => mapLoader.Loaded));

        loader.ActiveFadeOut();
    }