wangguan
2020-11-27 bda34f905f38c2bb8f1b17866890123d34210ec4
出结算的时候隐藏特效
2 files modified
18 ■■■■ changed files
Assets/Scripts/TowerDefense/UI/EndlessSettlement.cs 5 ●●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs 13 ●●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/UI/EndlessSettlement.cs
@@ -83,9 +83,8 @@
            panelUI.SetData($"成绩 {EndlessLevelManager.instance.CurrentLevel}关 {EndlessLevelManager.instance.WaveManager.CurrentWaveIndex}波", EndlessScoreData.CurrentSocre);
            panelUI.SetPlayEffectAC(PlayEffect);
            //GameObject.Find("UICamera/BottomCanvas").GetComponent<Canvas>().enabled = false;
            CanvasGroup canvasGroup = GameObject.Find("UICamera/BottomCanvas/Panel").GetComponent<CanvasGroup>();
            canvasGroup.alpha = 0;
            canvasGroup.interactable = false;
            EndlessUIStart.instance.GameOver();
            return;
            // RefreshFinalWave();
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
@@ -52,6 +52,8 @@
    public GameObject darkGroundImg;
    private CanvasGroup canvasGroup;
    /// <summary>
    /// Awake is called when the script instance is being loaded.
    /// </summary>
@@ -148,6 +150,8 @@
        //CalculateSkillSliderValue();
        transform.Find("Panel/Energy").gameObject.SetActive(false);
        canvasGroup = transform.Find("Panel").GetComponent<CanvasGroup>();
        EventCenter.Ins.Add<int>((int)KTGMGemClient.EventType.EnergyUp, EnergyUp);
        EventCenter.Ins.Add((int)KTGMGemClient.EventType.SkillLevelUpBuff, SkillLevelUpBuff);
@@ -159,7 +163,7 @@
        int guide = PlayerPrefs.GetInt("GemBattleGuide");
        GameConfig.IsNewbie = guide == 0;
        GameConfig.IsNewbieStart = GameConfig.IsNewbie;
        if (GameConfig.IsNewbie)
        {
            Debug.Log("开始新手引导");
@@ -175,6 +179,13 @@
        }
    }
    public void GameOver()
    {
        canvasGroup.alpha = 0;
        canvasGroup.interactable = false;
        GuideEnergyUp(0);
    }
    /// <summary>
    /// 所有数据读取完毕
    /// </summary>