Exemple #1
0
 static public void Init()
 {
     if (layersTagsData == null)
     {
         layersTagsData = ScriptableObjectUtils.LoadCreateScriptableObject <AssetsLayersTagsData>(AssetsLayersTagsDataPath);
     }
 }
Exemple #2
0
    private void Init()
    {
        oldGUIColor = GUI.color;
        if (!Directory.Exists(assetPath))
        {
            Directory.CreateDirectory(assetPath);
        }

        settingData = ScriptableObjectUtils.LoadCreateScriptableObject <AssetBundleSettingData>(assetPath + settingDataPath);
        settingData.Init();

        UpdateFileExtension();
        UpdatePackageController.Init();
        gameVersionInfo = UpdatePackageController.GetGameVersionInfo(PlayerSettings.productName);
        if (gameVersionInfo == null)
        {
            gameVersionInfo = new GameVersionInfo();
            gameVersionInfo.forceUpdateVersion = PlayerSettings.bundleVersion;
            gameVersionInfo.latestVersion      = PlayerSettings.bundleVersion;
        }

        versionControlInfo = UpdatePackageController.GetVersionControlInfo(PlayerSettings.productName, PlayerSettings.bundleVersion);
        if (versionControlInfo == null)
        {
            versionControlInfo = new VersionControlInfo();
        }
        int num = GetMaxNumber(versionControlInfo.assetBundleVersions);

        if (num == -1)
        {
            assetBundleInfo                    = new AssetBundleInfo();
            assetBundleInfo.gameName           = PlayerSettings.productName;
            assetBundleInfo.gameVersion        = PlayerSettings.bundleVersion;
            assetBundleInfo.assetBundleVersion = 0;
        }
        else
        {
            assetBundleInfo = UpdatePackageController.GetAssetBundleInfo(PlayerSettings.productName, PlayerSettings.bundleVersion, num);
            assetBundleInfo.assetBundleVersion = assetBundleInfo.assetBundleVersion + 1;
        }
    }
Exemple #3
0
 public static MessageStringData GetMessageStringData()
 {
     return(ScriptableObjectUtils.LoadCreateScriptableObject <MessageStringData>(LogicSystemConstData.LogicSystemEditorPath));
 }
 void Init()
 {
     msData = ScriptableObjectUtils.LoadCreateScriptableObject <MessageStringData>(LogicSystemConstData.LogicObjectBackUpData);
 }