chenxin
2020-12-09 99aeeba01056d2d035274dbed58318edcd68a2bc
简单解决泡泡禁锢bug
1 files modified
8 ■■■■ changed files
Assets/Scripts/TowerDefense/UI/EndlessBossSkill/BossSkillBondageBubble.cs 8 ●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/UI/EndlessBossSkill/BossSkillBondageBubble.cs
@@ -73,7 +73,7 @@
                {
                    Tower tower = EndlessGameUI.instance.FindTowerWithGridIdx(tunelIdList[i] - 1, j);
                    if (tower != null && !tower.IsBondage)
                    if (tower != null && tower.gameObject.activeInHierarchy && !tower.IsBondage)
                    {
                        tower.IsBondage = true;
                        tower.IsStartBondage = true;
@@ -97,7 +97,7 @@
                // 只作用于第一排的塔
                Tower tower = EndlessGameUI.instance.FindTowerWithGridIdx(tunelIdList[i] - 1, 3);
                if (tower != null)
                if (tower != null && tower.gameObject.activeInHierarchy && !tower.IsBondage)
                {
                    tower.IsBondage = true;
                    tower.IsStartBondage = true;
@@ -124,7 +124,7 @@
                {
                    Tower tower = EndlessGameUI.instance.FindTowerWithGridIdx(tunelIdList[i] - 1, j);
                    if (tower != null && !tower.IsBondage)
                    if (tower != null && tower.gameObject.activeInHierarchy && !tower.IsBondage)
                        towerList.Add(tower);
                }
@@ -157,7 +157,7 @@
                {
                    Tower tmp = EndlessGameUI.instance.FindTowerWithGridIdx(tunelIdList[i] - 1, j);
                    if (tmp != null && !tmp.IsBondage)
                    if (tmp != null && tmp.gameObject.activeInHierarchy && !tmp.IsBondage)
                    {
                        if (tower == null)
                            tower = tmp;