Explorar o código

被炸了解除浮空状态报错

LAPTOP-OM1V99U2\永远de小亡灵 hai 1 ano
pai
achega
12559da2d9
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      ActionTowerDefense/Assets/Scripts/MoveCharacter.cs

+ 2 - 1
ActionTowerDefense/Assets/Scripts/MoveCharacter.cs

@@ -120,7 +120,8 @@ public class MoveCharacter : Character
         if(outline1Mats.Length == 0)
         {
             Transform particleSystem = bodyTrans.GetChild(1).GetChild(0);
-            if (particleSystem == null && particleSystem.name != "Particle System")
+            if (particleSystem == null || 
+                ( particleSystem != null && particleSystem.name != "Particle System"))
             {
                 return;
             }