i am making a game were i have a board facing the camera in 2d format i am dropping balls down the side of this board, what i want to happen is the balls hit the bottom bored and destroy themselves(like Tetriz but when the blocks hit the bottom they destroy themselves)it works but when the balls hit each other they destroy each other please help. I am a noob so please dont make fun haha.
#pragma strict
function OnCollisionEnter(Collision : Collision){
if( Collision.gameObject.tag == "bubble")
{
Destroy(this.gameObject);
}
}
PS: i also need to make a tally to this script in the future for every ball that hits the bottom it adds up bye 1 point. thanks guys