I have done a gun that automatically fires bullets every "update". The problem I'm having is when I added the script:
void OnCollisionEnter()
{
Destroy (gameObject);
}
the bullets collide with each other and disappear. Is their a way to make it disappear only when it collides with objects other than the bullet?
Any help is very much appreciated.
↧