Exemplo n.º 1
0
    void Start()
    {
        sceneData = SceneNavigator.Instance.GetSceneData(CreateDefaultSceneData());

        searchTextInputField = GameObjectUtils.FindObjectOfType <SearchInputField>(true);

        songMetas = SongMetaManager.Instance.SongMetas;
        List <PlayerProfile> playerProfiles = SettingsManager.Instance.Settings.PlayerProfiles;

        songRouletteController = FindObjectOfType <SongRouletteController>();
        songRouletteController.SongSelectSceneController = this;

        InitSongRoulette();

        // Show a message when no songs have been found.
        noSongsFoundMessage.SetActive(songMetas.IsNullOrEmpty());
    }
Exemplo n.º 2
0
    void Start()
    {
        sceneData = SceneNavigator.Instance.GetSceneData(CreateDefaultSceneData());

        searchTextInputField = GameObjectUtils.FindObjectOfType <SearchInputField>(true);

        songMetas = SongMetaManager.Instance.SongMetas;
        List <PlayerProfile> playerProfiles = PlayerProfileManager.Instance.PlayerProfiles;

        PopulatePlayerProfileList(playerProfiles);

        songRouletteController = FindObjectOfType <SongRouletteController>();
        songRouletteController.SongSelectSceneController = this;
        songRouletteController.SetSongs(songMetas);
        if (sceneData.SongMeta != null)
        {
            songRouletteController.SelectSong(sceneData.SongMeta);
        }
    }