コード例 #1
0
ファイル: SongManager.cs プロジェクト: yunnizhu/MelodyStar
        void Start()
        {
            song           = MidiParser.readMidi("Assets/Resources/Songs/HotCrossBunsLow.mid");
            songBackground = Resources.Load <AudioClip>("Songs/Megalovania");
            audio.clip     = songBackground;
            audio.Play();

            SongSetup songSetup = gameObject.GetComponent <SongSetup>();

            lanes         = songSetup.setupLanes();
            songStartTime = Time.time;
        }
コード例 #2
0
        void Start()
        {
            if (!InputSettings.initalized)
            {
                InputSettings.setToDefault();
            }
            song = songSetup.readSong("HotCrossBunsLow");

            backgroundMusic.clip = song.backgroundTrack;
            backgroundMusic.Play();
            instrument.clip = song.instrumentSample;


            lanes         = songSetup.setupLanes();
            songStartTime = Time.time;
        }