chenxin
2020-12-03 7816f8290afca6bd471f5291d49a7f7c47463eb6
commit
1 files modified
15 ■■■■ changed files
Assets/Scripts/TowerDefense/Towers/Tower.cs 15 ●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/Towers/Tower.cs
@@ -207,8 +207,7 @@
                if (BondageWarningTime <= 0)
                {
                    Destroy(bondageWarningObj);
                    bondageWarningObj = null;
                    DestroyBondageWarningObj();
                    StartBondage();
                    ShowTapPrompt();
                }
@@ -219,6 +218,7 @@
                if (BondageTime <= 0)
                {
                    DestroyBondageWarningObj();
                    HideTapPrompt();
                    IsBondage = false;
                    Destroy(bondageObj);
@@ -228,6 +228,17 @@
            }
        }
        private void DestroyBondageWarningObj()
        {
            if (bondageWarningObj == null) return;
            ParticleSystem ps = bondageWarningObj.transform.GetChild(0).GetComponent<ParticleSystem>();
            ps.Stop();
            ps.Clear();
            Destroy(bondageWarningObj);
            bondageWarningObj = null;
        }
        /// <summary>
        /// 展示连续点击提示
        /// </summary>