yyl
2 天以前 5d3366f2e0f687995eb7ad2107c4379fe7acd4e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//--------------------------------------------------------
//    [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("清理分支设置");
    }
 
 
}