public void LoadLevel(int level) { if (GameJoltAPI.Instance != null) { RemoteSettingsHolder rsh = GameJoltAPI.Instance.GetComponent <RemoteSettingsHolder>(); if (rsh != null) { playlist.LoadPlaylist(rsh.Playlist); } } if (level <= currentLevel.RuntimeValue) { SceneManager.LoadScene(playlist.NextLevel(level)); } if (level < 1) { SceneManager.LoadScene(1); } }