wangguan
2020-12-22 3c54c3efb141adf11146eff7678e363f1be9cad3
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
@@ -62,16 +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;
            }
            root = new GameObject("ManagerRoot");
@@ -158,7 +164,7 @@
        transform.Find("Panel/BuffPreviewButton").gameObject.SetActive(false);
        transform.Find("Panel/SwitchSpeed").gameObject.SetActive(false);
        GMBtn.SetActive(false);
        GameConfig.EnergyCount = 0;
        GameConfig.SkillLevel = 1;
@@ -621,7 +627,7 @@
            fireSkillCost = JsonDataCenter.GetSkillLevelInfo(fireSkillID, GameConfig.SkillLevel).cost;
            bombSkillCost = JsonDataCenter.GetSkillLevelInfo(bombSkillID, GameConfig.SkillLevel).cost;
            //Debug.Log($"技能最高5级,当前技能等级:{GameConfig.SkillLevel}  fireSkillCost:{fireSkillCost}  ");
            fireSkillLevelText.text = "Lv." + GameConfig.SkillLevel;
            fireSkillLevelText.text = GameConfig.SkillLevel + "级";
        }
    }