From cb653cf75b17b9bdca0b5b9e6b88edf1ca72e90c Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 17 十月 2025 09:54:11 +0800
Subject: [PATCH] 0312 删除旧的日常代码3
---
Main/System/Debug/DebugController.cs | 76 +++++++-------------------------------
1 files changed, 14 insertions(+), 62 deletions(-)
diff --git a/Main/System/Debug/DebugController.cs b/Main/System/Debug/DebugController.cs
index 85e706c..78c0fa3 100644
--- a/Main/System/Debug/DebugController.cs
+++ b/Main/System/Debug/DebugController.cs
@@ -10,88 +10,40 @@
public class DebugController : MonoBehaviour
{
- // [SerializeField] FPS m_Fps;
- // [SerializeField] Toggle m_ToggleFPS;
+ [SerializeField] FPS m_Fps;
- // [SerializeField] DebugVersionShow m_DebugVersion;
- // [SerializeField] Toggle m_ToggleVersion;
+ [SerializeField] Text m_Version;
private void OnEnable()
{
- // if (m_Fps != null)
- // {
- // m_Fps.SetActive(m_ToggleFPS.isOn);
- // }
-
- // m_ToggleFPS.RemoveAllListeners();
- // m_ToggleFPS.AddListener(ToggleFPS);
-
- // if (m_DebugVersion != null)
- // {
- // m_DebugVersion.SetActive(m_ToggleVersion.isOn);
- // }
-
- // m_ToggleVersion.RemoveAllListeners();
- // m_ToggleVersion.AddListener(ToggleVersion);
+#if UNITY_EDITOR
+ m_Version.text = string.Empty;
+#else
+ m_Version.text = string.Format("{0}_{1} 鍒嗘敮: {2}",
+ VersionConfig.Get().version, VersionConfig.Get().buildIndex, VersionConfig.Get().branch);
+#endif
}
- void ToggleFPS(bool _value)
- {
- // if (m_Fps != null)
- // {
- // m_Fps.SetActive(_value);
- // }
- }
-
- void ToggleVersion(bool _value)
- {
- // if (m_DebugVersion != null)
- // {
- // m_DebugVersion.SetActive(_value);
- // }
- }
public void OpenGM()
{
- // if (!WindowCenter.Instance.IsOpen<GMInputWin>())
- // {
- // WindowCenter.Instance.Open<GMInputWin>();
- // }
+ if (!UIManager.Instance.IsOpened<GMInputWin>())
+ {
+ UIManager.Instance.OpenWindow<GMInputWin>();
+ }
}
public void OpenGMCommond()
{
- // WindowCenter.Instance.Open<GMCmdPanel>();
+ UIManager.Instance.OpenWindow<GMCmdPanel>();
}
-
- // //public void SendSpecialCTG()
- // //{
- // // var model = ModelCenter.Instance.GetModel<VipModel>();
- // // var list = model.GetCTGConfigs(VersionConfig.Get().appId);
- // // for (int i = 0; i < list.Count; i++)
- // // {
- // // var config = CTGConfig.Get(list[i]);
- // // if (config.PayType == 4)
- // // {
- // // model.CTG(config.RecordID);
- // // return;
- // // }
- // // }
- // //}
public void CleanNewBranchSet()
{
LocalSave.DeleteKey("#@#BrancH");
- // ScrollTip.ShowTip("娓呯悊鍒嗘敮璁剧疆");
+ ScrollTip.ShowTip("娓呯悊鍒嗘敮璁剧疆");
}
- public void PrintLastCrashLog()
- {
- // if (CrashReport.lastReport != null)
- // {
- // Debug.LogFormat("宕╂簝鏃ュ織:{0}", CrashReport.lastReport);
- // }
- }
}
--
Gitblit v1.8.0