wangguan
2020-12-11 d4eadbf1bac0dba434d4c35e60e643143e770faa
Assets/Scripts/Guide/GuidePanelNew.cs
@@ -39,7 +39,9 @@
    ImageTowerPos towerPos3;//塔位标识
    Image tmpMask;//自身的阻挡射线Panel
    ParticleSystem finishPS;
    //ParticleSystem finishPS;
    Button finishBtn;
    Image finishImg;
    void Awake()
    {
        tmpMask = transform.GetComponent<Image>();
@@ -139,7 +141,12 @@
        skillBtn = GameObject.Find("UICamera/BottomCanvas/Panel/Energy/FireSkillBg/SkillBtn").GetComponent<Button>();
        skillBtn.interactable = false;
        finishPS = transform.Find("Effect_UI_YinDaoJieShu/Particle System (3)").GetComponent<ParticleSystem>();
        finishBtn = transform.Find("FinishImageBtn").GetComponent<Button>();
        finishImg = finishBtn.transform.Find("FinishImage").GetComponent<Image>();
        finishImg.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
        finishBtn.onClick.AddListener(OnClickFinish);
        finishBtn.gameObject.SetActive(false);
        //finishPS = transform.Find("Effect_UI_YinDaoJieShu/Particle System (3)").GetComponent<ParticleSystem>();
        towerBuyBtn.gameObject.SetActive(false);
    }
@@ -646,13 +653,26 @@
        CloseGuidance();
        SetGuideUI(true);
        //StartShowWord(str, ac);
        callBack = ac;
        StartShowWord(str, ShowFinishPanel);
        // charForeach.StartFinalShowWord(str, ac, () =>
        // {
        //     finishPS.Play();
        // });
        charForeach.StartFinalShowWord(str, ac, () =>
    }
    private void ShowFinishPanel()
        {
            finishPS.Play();
        });
        SetGuideUI(false);
        //显示引导结束面板,再次点击按钮关闭
        finishBtn.gameObject.SetActive(true);
        finishImg.transform.DOScale(Vector3.one, 0.5f);
    }
    private void OnClickFinish()
    {
        callBack?.Invoke();
    }