Hello, I am trying to collide my Player object so that it can hit and destroy the enemy but , problem is it wont collide, i dont know where is the problem since i am new Code is Below rest everything in unity is at default. Please Help Thank You.
ITS A 2D GAME
HERE
void OnCollisionEnter2D(Collision2D col){
if (col.gameObject.name == (“portal”)) {
Destroy (col.gameObject);
}
}