Assets/Scripts/Guide/GuidePanelNew.cs
@@ -39,6 +39,7 @@
    ImageTowerPos towerPos3;//塔位标识
    Image tmpMask;//自身的阻挡射线Panel
    ParticleSystem finishPS;
    void Awake()
    {
        tmpMask = transform.GetComponent<Image>();
@@ -137,6 +138,8 @@
        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>();
    }
@@ -153,7 +156,13 @@
        //fire2.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        towerPos.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        towerPos2.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        towerPos3.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        wood1.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        wood2.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        fire.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        water.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        //fire.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        //skill.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
    }
@@ -221,9 +230,6 @@
    private void Step2_1()
    {
        Wood1Appear();
        RemoveButtonListener(towerBuyBtn);
        AddButtonListener(towerBuyBtn, Step2_2);
        StartCoroutine(ShowRimTip(strArray[1]));
    }
    private void Wood1Appear()
@@ -235,6 +241,9 @@
            wood1.enabled = false;
            wood1PS1.Play();
            wood1PS2.Play();
            RemoveButtonListener(towerBuyBtn);
            AddButtonListener(towerBuyBtn, Step2_2);
            StartCoroutine(ShowRimTip(strArray[1]));
        }
    }
@@ -245,26 +254,30 @@
    {
        Wood2Appear();
        offectBackground.SetActive(true);
        wood1.enabled = true;
        wood2.enabled = true;
        ShowDragPath(wood2.GetStartP, wood1.GetRect);
        RimWood2();
        image_Tip_Rect.gameObject.SetActive(false);
        //StartCoroutine(ShowRimTip(strArray[2]));
    }
    private void Wood2Appear()
    {
        wood2.gameObject.SetActive(true);
        wood2PS1.Play();
        wood2PS2.Play();
        //fire2.enabled = false;
        DestoryButtonListener(towerBuyBtn);
        SetRimActive(false);
        CloseGuidance();
        tmpMask.enabled = true;
        if (!wood2.gameObject.activeSelf)
        {
            wood2.gameObject.SetActive(true);
            wood2PS1.Play();
            wood2PS2.Play();
            //fire2.enabled = false;
            DestoryButtonListener(towerBuyBtn);
            SetRimActive(false);
            CloseGuidance();
            tmpMask.enabled = true;
            offectBackground.SetActive(true);
            wood1.enabled = true;
            wood2.enabled = true;
            ShowDragPath(wood2.GetStartP, wood1.GetRect);
            RimWood2();
            image_Tip_Rect.gameObject.SetActive(false);
        }
    }
@@ -361,7 +374,6 @@
        InitRectGuidance(btnImg, 159, 73.5f, Vector2.one);
        SetRimPos(towerBuyBtn);
        StartCoroutine(ShowRimTip(strArray[0]));
    }
    /// <summary>
@@ -370,8 +382,6 @@
    private void Step4_1()
    {
        FireAppear();
        RemoveButtonListener(towerBuyBtn);
        Step4_2();
    }
    private void FireAppear()
@@ -383,6 +393,8 @@
            fire.enabled = true;
            firePS1.Play();
            firePS1.Play();
            RemoveButtonListener(towerBuyBtn);
            Step4_2();
        }
    }
@@ -467,6 +479,8 @@
        }
        else if (currentIndex == 2)
        {
            tmpMask.enabled = true;
            SetRimActive(false);
            StopShowDragPath(true);
            CloseGuidance();
@@ -515,8 +529,6 @@
    private void Step6_1()
    {
        WaterAppear();
        RemoveButtonListener(towerBuyBtn);
        Step6_2();
    }
    private void WaterAppear()
@@ -528,6 +540,8 @@
            water.enabled = true;
            waterPS1.Play();
            waterPS2.Play();
            RemoveButtonListener(towerBuyBtn);
            Step6_2();
        }
    }
    /// <summary>
@@ -594,6 +608,7 @@
    /// </summary>
    public void GuideEnergyUp()
    {
        GameObject.Find("UICamera/MainUI/BloodUI").SetActive(false);
        EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.GuideEnergyUp, 100);
        tmpMask.enabled = false;
@@ -610,14 +625,23 @@
    public void SkillRelease(string[] str, Action ac)
    {
        GameObject.Find("UICamera/MainUI/BloodUI").SetActive(true);
        RemoveButtonListener(skillBtn.gameObject);
        SetRimActive(false);
        CloseGuidance();
        SetGuideUI(true);
        StartShowWord(str, ac);
        //StartShowWord(str, ac);
        charForeach.StartFinalShowWord(str, ac, () =>
        {
            finishPS.Play();
        });
    }
    public void FinishGuide()
    {
        towerBuyBtn.gameObject.SetActive(true);