diff --git a/Assets/Scripts/Bomb.cs b/Assets/Scripts/Bomb.cs index bf619ec..ebd285a 100644 --- a/Assets/Scripts/Bomb.cs +++ b/Assets/Scripts/Bomb.cs @@ -46,9 +46,11 @@ public class Bomb : MonoBehaviour { } IEnumerator ExplodeAfter(float delay) { - yield return new WaitForSeconds (delay); - explosion.SetActive (true); - transform.DetachChildren (); - Destroy (gameObject); + if (delay >= 0) { + yield return new WaitForSeconds (delay); + explosion.SetActive (true); + transform.DetachChildren (); + Destroy (gameObject); + } } }