| //-------------------------------------------------------- | 
| //    [Author]:           Mechanist Games | 
| //    [  Date ]:           Wednesday, August 09, 2017 | 
| //-------------------------------------------------------- | 
| using UnityEngine; | 
| using System.Collections; | 
| using UnityEngine.UI; | 
|   | 
|   | 
| public class DebugController : MonoBehaviour | 
| { | 
|   | 
|     [SerializeField] FPS m_Fps; | 
|   | 
|     [SerializeField] Text m_Version; | 
|   | 
|     private void OnEnable() | 
|     { | 
| #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 | 
|     } | 
|   | 
|   | 
|     public void OpenGM() | 
|     { | 
|         if (!UIManager.Instance.IsOpened<GMInputWin>()) | 
|         { | 
|             UIManager.Instance.OpenWindow<GMInputWin>(); | 
|         } | 
|     } | 
|   | 
|     public void OpenGMCommond() | 
|     { | 
|         UIManager.Instance.OpenWindow<GMCmdPanel>(); | 
|     } | 
|   | 
|     public void CleanNewBranchSet() | 
|     { | 
|         LocalSave.DeleteKey("#@#BrancH"); | 
|         ScrollTip.ShowTip("清理分支设置"); | 
|     } | 
|   | 
|   | 
| } |