コード例 #1
0
        void UpdateSong()
        {
            songLabel.text = songList[currentSongNum];
            currentSong    = SongLibrary.GetSongInfo(songList[currentSongNum]);

            Conductor.instance.musicSource.clip = Resources.Load <AudioClip>("Songs/" + currentSong.source);
            Conductor.instance.songBpm          = currentSong.bpm;
            Conductor.instance.firstBeatOffset  = currentSong.offset;
            Conductor.instance.playerInstrument = InstrumentLibrary.GetInstrumentFromName(currentSong.player_instrument);
            KeysInput.instance.SetKeys(currentSong.keys);
            Conductor.instance.SetTrackerBeats(currentSong.player_beats);
        }
コード例 #2
0
 void Awake()
 {
     instance         = this;
     playerInstrument = InstrumentLibrary.GetInstrumentFromName("Fingered Bass");
 }