private void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.tag == "Enemy Car") { if (timer > 0) { Destroy(collision.gameObject); } else { Destroy(gameObject); //gameObject.SetActive(false); ui.gameOverFN(); am.carSound.Stop(); } } if (collision.gameObject.tag == "Power") { Destroy(collision.gameObject); timer = powerTime; } }