Explorar el Código

漏开了一个参数

SZAND\msx_2 hace 1 año
padre
commit
5459e9ea26
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  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;