private void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.tag.Equals("bullet")) { counter += 10; if (counter == 100) { move.EndGame(); move.enabled = false; SceneManager.LoadScene("Scene_3"); counter = 0; } Destroy(collision.gameObject); } }