public void LoadScene(string sceneName) { if (sceneName == SceneManager.GetActiveScene().name) { fastTravelMap.SetActive(false); EventSystem.current.SetSelectedGameObject(null); return; } LevelTransition transition = GetComponent <LevelTransition>(); transition.nextLevel = "Scenes/" + sceneName; transition.StartTransition(); }
public void StartResetTransition() { levelTransition.StartTransition(); }