Beispiel #1
0
    public void LoadSavedLevel()
    {
        int levelToLoad = PlayerPrefsController.GetLevelNumber() + 1;

        if (levelToLoad < 3)
        {
            if (tooltip.enabled == false)
            {
                tooltip.enabled = true;
                StartCoroutine(HideTooltip());
            }
        }
        else
        {
            SceneManager.LoadScene(levelToLoad);
        }
    }