Beispiel #1
0
    public static void injectLevel(string level)
    {
        DataBuildSettingProfilScenesMerger merger = HalperScriptables.getScriptableObjectInEditor <DataBuildSettingProfilScenesMerger>("everything");

        if (merger == null)
        {
            Debug.LogError("no merger for level " + level);
            return;
        }

        if (merger.levels == null)
        {
            Debug.LogError("no levels on merger " + merger.name);
            return;
        }

        for (int i = 0; i < merger.levels.Length; i++)
        {
            if (merger.levels[i].name.Contains(level))
            {
                merger.levels[i].add();
                return;
            }
        }

        Debug.LogWarning("didn't find to inject : " + level);
    }
Beispiel #2
0
    public static void injectAll(string filter = "everything")
    {
        //DataBuildSettingProfilScenes scenes = HalperScriptables.getScriptableObjectInEditor<DataBuildSettingProfilScenes>("game_release");
        DataBuildSettingProfilScenesMerger merger = HalperScriptables.getScriptableObjectInEditor <DataBuildSettingProfilScenesMerger>(filter);

        merger.apply();

        Debug.Log("re-applied all scenes from scriptable " + merger.name, merger);
    }