It looks like you're new here. If you want to get involved, click one of these buttons!
So far my code looks like this:
public class Bullet : MonoBehaviour
public GameObject hitEffect;
void OnCollisionEnter2D(Collision2D collision)
GameObject boom = Instantiate(hitEffect, transform.position, Quaternion.identity);
The explosion disappears like stated, but the bullet does not delete after a while. I gave the bullet the same delay as the explosion to see what happens to the bullets that where connected to the explosion and they deleted after a while. The bullets not connected to the explosion did not do the same. Even though it is stated in the code for the bullet to be destroyed. I even tried to a WaitForSeconds command, which did nothing but make errors. Can someone please help.