Procházet zdrojové kódy

子弹可以穿地面

WGL před 2 měsíci
rodič
revize
3c938fd6ba
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      ActionTowerDefense/Assets/Scripts/Bullet.cs

+ 1 - 1
ActionTowerDefense/Assets/Scripts/Bullet.cs

@@ -140,7 +140,7 @@ public class Bullet : MonoBehaviour
             return;
         }
         Platform platform = other.GetComponent<Platform>();
-        if ((platform != null && !platform.canPenetrateBullets || other.CompareTag("Ground")))
+        if (platform != null && !platform.canPenetrateBullets)
         {
             if (bulletType == BulletType.Single || bulletType == BulletType.Throw)
             {