Ver Fonte

漏开了一个参数

SZAND\msx_2 há 1 ano atrás
pai
commit
5459e9ea26
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      ActionTowerDefense/Assets/Scripts/Tower.cs

+ 4 - 4
ActionTowerDefense/Assets/Scripts/Tower.cs

@@ -78,10 +78,6 @@ public class Tower : Character
                 break;
             case CharacterState.Die:
                 isDie = false;
-                if (isLockSoul)
-                {
-                    GetComponentInChildren<LockSoul>().ReleaseAllSouls();
-                }
                 break;
             default:
                 break;
@@ -110,6 +106,10 @@ public class Tower : Character
                 }
                 break;
             case CharacterState.Die:
+                if (isLockSoul)
+                {
+                    GetComponentInChildren<LockSoul>().ReleaseAllSouls();
+                }
                 ani.Play("die", 0, 0);
                 aniCollider.Play("Die", 0, 0);
                 isDie = true;