Assets/Launch/Launch.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Assets/Launch/UI/LaunchWins/LaunchExWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Assets/Launch/VersionConfigEx.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Assets/Launch/Launch.cs
@@ -15,19 +15,6 @@ public class Launch : MonoBehaviour { #if UNITY_EDITOR public bool EnableNetLog = true; public bool EnableLog = true; public bool EnableLogWarning = true; public bool EnableLogError = true; #else public bool EnableNetLog = false; public bool EnableLog = false; public bool EnableLogWarning = false; public bool EnableLogError = false; #endif private static Assembly _hotUpdateAss; //网络获取 @@ -56,14 +43,25 @@ m_Instance = this; // Debug.logger.enabled = false; #if !UNITY_EDITOR if (File.Exists(Directory.GetParent(Application.persistentDataPath) + "/Debug") || LocalSave.GetString("#@#BrancH") != string.Empty) { Debug.unityLogger.logEnabled = true; } else { Debug.unityLogger.logEnabled = false; } #endif } // 启动入口 async void Start() { Debug.Log("Launch Start"); InitPlugins(); InitSetting(); Assets/Launch/UI/LaunchWins/LaunchExWin.cs
@@ -23,6 +23,8 @@ [SerializeField] Image imagebg3; [SerializeField] Image imageloding; [SerializeField] Button deleteBranchBtn; int AllTimes = 8; bool ShowCircleView = false; @@ -71,6 +73,13 @@ UpdateProgress(); deleteBranchBtn.gameObject.SetActive(LocalSave.GetString("#@#BrancH") != string.Empty); deleteBranchBtn.onClick.AddListener(() => { LocalSave.DeleteKey("#@#BrancH"); deleteBranchBtn.gameObject.SetActive(false); }); } float m_Time = 0; Assets/Launch/VersionConfigEx.cs
@@ -49,14 +49,14 @@ { get { // if (ResourcesModel.Instance.debugBranch > 0) // { // return ResourcesModel.Instance.debugBranch; // } // else // { if (LocalResManager.Instance.debugBranch > 0) { return LocalResManager.Instance.debugBranch; } else { return m_Branch; // } } } }