|
|
@@ -122,10 +122,16 @@ public class Bullet : MonoBehaviour
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
- if(bulletType == BulletType.Single && (other.CompareTag("Platform")|| other.CompareTag("Ground")))
|
|
|
+ Platform platform = other.GetComponent<Platform>();
|
|
|
+ if ((platform != null && !platform.canPenetrateBullets || other.CompareTag("Ground")))
|
|
|
{
|
|
|
- gameObject.SetActive(false);
|
|
|
- return;
|
|
|
+ if (bulletType == BulletType.Single)
|
|
|
+ {
|
|
|
+ DisappearEffect();
|
|
|
+ gameObject.SetActive(false);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
BeHitTrigger hitTrigger = other.GetComponent<BeHitTrigger>();
|
|
|
if (hitTrigger != null)
|