コード例 #1
0
ファイル: ConfigLoader.cs プロジェクト: Fmacgt/Uroboros
    public void initConfig()
    {
        //get the index of the song to play
        songIdx = PlayerPrefs.GetInt(songIdxKey);

        spawner.setConfig(configList[songIdx].spawnerConfig);

        configList[songIdx].freqHoldConfig.src = song;
        freqHold.setConfig(configList[songIdx].freqHoldConfig);

        progressRing.setLength(song.clip.length);
        progressRing.src = song;

        gameOverUI.setToDistort(song);

        song.Play();
        freqHold.activate();
    }