Selaa lähdekoodia

子弹可以穿地面

WGL 2 kuukautta sitten
vanhempi
commit
3c938fd6ba
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)
             {