Beispiel #1
0
    /* public MusicNotePair[] MusicNotes = new MusicNotePair[(int)NoteType.Count]
     * {
     *   new MusicNotePair(0),
     *   new MusicNotePair(1),
     *   new MusicNotePair(2),
     *   new MusicNotePair(3),
     *   new MusicNotePair(4),
     *   new MusicNotePair(5),
     *   new MusicNotePair(6),
     *   new MusicNotePair(7),
     *   new MusicNotePair(8),
     *   new MusicNotePair(9),
     *   new MusicNotePair(10),
     *   new MusicNotePair(11),
     *   new MusicNotePair(12),
     *   new MusicNotePair(13)
     * };*/

    void Awake()
    {
        if (m_Instance != null && m_Instance != this)
        {
            Destroy(this.gameObject);
        }
        else
        {
            m_Instance = this;
        }
        DontDestroyOnLoad(this.gameObject);

        AudioSourceComp = GetComponent <AudioSource>();
        AudioSourceComp.Stop();
    }
Beispiel #2
0
    void Awake()
    {
        InitializeManager();

        MusicPlayer = Object.FindObjectOfType <MusicPlayerComponent>();
    }