public void OnTriggerEnter2D(Collider2D collision) { if (collision.gameObject.tag == "Elf") { sceneChanger.LoadNewScene(); } }
public void ChangeScene() { SceneChanger changer = gameObject.GetComponent <SceneChanger>(); changer.LoadNewScene(); }
public void Load(string sceneName) { SceneChanger.LoadNewScene(sceneName); }
public void Load(int sceneIndex) { SceneChanger.LoadNewScene(sceneIndex); }
private void LoadHighScore() { SceneChanger.LoadNewScene("HighScore", this.name); }