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();
    }
Example #2
0
 public void StartResetTransition()
 {
     levelTransition.StartTransition();
 }