public void LoadLevel(int levelNumber) { if (worldNumber <= worldProgress) { if (levelNumber <= levelProgress + 1) //we want to have access to the level already cleared and the next one //SceneManager.LoadScene("world"+(worldNumber+1).ToString()+"_Level" + levelNumber.ToString()); { UIManager.FadeOutToScene("world" + (worldNumber + 1).ToString() + "_Level" + levelNumber.ToString()); } } }