Example #1
0
    public IEnumerator SetupMap()
    {
        if (MapSetupConfig.IsLoadMap)
        {
            if (MapSetupConfig.MapName == "default")
            {
                saveLoadMenu.LoadDefaultMap();
            }
        }
        StartMenu startMenu = FindObjectOfType <StartMenu>();

        if (startMenu)
        {
            startMenu.Finish();
        }


        yield return(new WaitForEndOfFrame());
    }