Ejemplo n.º 1
0
        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;
        }