| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEditor; |
| | | using System.IO; |
| | | using UnityEngine.UI; |
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | | using UnityEditor;
|
| | | using System.IO;
|
| | | using UnityEngine.UI;
|
| | | using System.Reflection;
|
| | |
|
| | |
|
| | | public class ExportVersionConfigEx : EditorWindow { |
| | | |
| | | |
| | | [MenuItem("程序/同步VersionConfigEx.txt", false)] |
| | | private static void Export() |
| | | public class ExportVersionConfigEx : EditorWindow {
|
| | |
|
| | |
|
| | | [MenuItem("程序/同步VersionConfigEx.txt", false)]
|
| | | private static async void Export()
|
| | | {
|
| | | //生成VersionConfigEx.txt 提供给AOT启动时使用
|
| | | var json = JsonUtility.ToJson(VersionConfig.Get());
|
| | | await VersionConfig.GetAsync();
|
| | | var json = JsonUtility.ToJson(VersionConfig.config);
|
| | | string versionConfigExFile = Application.dataPath + "/Resources/VersionConfigEx.txt";
|
| | | if (File.Exists(versionConfigExFile))
|
| | | {
|
| | |
| | | AssetDatabase.Refresh();
|
| | | Debug.Log("同步VersionConfigEx.txt成功");
|
| | |
|
| | | } |
| | | |
| | | |
| | | } |
| | | }
|
| | |
|
| | | |
| | | }
|