Projectiles are not going away

Once my projectiles collide with the enemy they do not disappear on impact. Where would i go to fix it

You’ll need something like this on your projectile.

OnTriggerEnter()
{
Destroy(this.gameObject);
}

You’ll need to make appropriate checks and triggers you’ll want to happen, of course.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms