void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag == "obstacle") { ui.stopScoreUpdate(); //Destroy(col.gameObject); startFading(); //Destroy(gameObject); //ui.gameOverActivated(true); //am.mainBg.Stop(); } }