private void OnTriggerEnter2D(Collider2D collision) { if (collision.gameObject.tag == "Danger") { Destroy(gameObject); PlayerUtility.setAttemptText(txt, AttemptsTracker.incrementAndGetAttemptLevelOne()); SceneManager.LoadScene(2); } }