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