void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag == "Player") { print("player DETECTED"); Destroy(gameObject); respawn.RandomSpawn(); gm.scoreCount = gm.scoreCount + 1; } }
void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag == "Player") { print("player DETECTED"); Destroy(gameObject); respawn.RandomSpawn(); gm.scoreCount = gm.scoreCount + 1; } }