Пример #1
0
    IEnumerator PreloadEditor()
    {
        yield return(null);

        MapLuaParser.LoadStructurePaths();
        yield return(null);

        BrushGenerator.Current.LoadBrushes();
        yield return(null);

        //Preload heavy gamedata files
        //GetGamedataFile.GetZipFileInstance(GetGamedataFile.UnitsScd);
        //yield return null;
        //yield return null;
        //GetGamedataFile.GetFAFZipFileInstance(GetGamedataFile.UnitsScd);

        GetGamedataFile.LoadGamedata();
        //yield return null;

        yield return(null);

        yield return(null);

        SceneManager.LoadSceneAsync(1, LoadSceneMode.Single);
    }
Пример #2
0
    void Awake()
    {
        Current = this;
        LoadStructurePaths();

        DecalsInfo.Current = DecalsMenu;
        PropsInfo.Current = PropsMenu;
        UnitsInfo.Current = UnitsMenu;

        GetGamedataFile.LoadGamedata();
    }