Ver Fonte

主角不被击飞

LAPTOP-OM1V99U2\永远de小亡灵 há 1 ano atrás
pai
commit
2838b8e900
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      ActionTowerDefense/Assets/Scripts/PlayerController.cs

+ 4 - 0
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -1477,6 +1477,10 @@ public class PlayerController : MoveCharacter
         {
             return;
         }
+        if(newState == CharacterState.Weak)
+        {
+            return;
+        }
         Vector3 velocity = rb.velocity;
         switch (state)
         {