wangguan
2020-12-22 a9be71cf5fc495f2df69c2f5b2f8910aa275877a
编辑器和win模式下开启GM面板
1 files modified
21 ■■■■ changed files
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs 21 ●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
@@ -62,21 +62,22 @@
    protected override void Awake()
    {
        base.Awake();
        if (Application.platform == RuntimePlatform.WindowsEditor ||
         Application.platform == RuntimePlatform.WindowsPlayer)
        {
            GameConfig.useSDK = false;
            GMBtn.SetActive(true);
        }
        else
        {
            GMBtn.SetActive(false);
        }
        //这里为了方便直接使用Endless2D
        GameObject root = GameObject.Find("ManagerRoot");
        if (root == null)
        {
            if (Application.platform == RuntimePlatform.WindowsEditor ||
           Application.platform == RuntimePlatform.WindowsPlayer)
            {
                GameConfig.useSDK = false;
                GMBtn.SetActive(true);
            }
            else
            {
                GMBtn.SetActive(false);
            }
            root = new GameObject("ManagerRoot");