diff --git a/Assets/Scripts/Bullet.cs b/Assets/Scripts/Bullet.cs index 0ef04c7..69bf192 100644 --- a/Assets/Scripts/Bullet.cs +++ b/Assets/Scripts/Bullet.cs @@ -46,4 +46,9 @@ public class Bullet : MonoBehaviour { Destroy(gameObject); } + + private void OnBecameInvisible() + { + Destroy(gameObject); + } }