private void OnTriggerEnter(Collider other) { if (other.tag == "finish" && other.name == "END") { playerRail.ChangeFinish(); //SceneManager.LoadScene("HighScorePrototype"); } if (other.tag == "finish" && other.name != "END") { SceneManager.LoadScene(4); } }