Esempio n. 1
0
        void Start()
        {
            m_musicCurrent = musicCurrentStateObject.GetComponent <MusicCurrentState>();

            m_renderer          = gameObject.GetComponent <Renderer>();
            m_renderer.material = matSign;
        }
Esempio n. 2
0
        void Start()
        {
            m_musicCurrent = musicCurrentStateObject.GetComponent <MusicCurrentState>();

            m_renderer = gameObject.GetComponent <Renderer>();

            m_musicCurrent.Player.AddMuteSectionChangeListener(OnMuteSection);
            m_musicCurrent.AddSectionChangeListener(OnSectionChange);
        }
Esempio n. 3
0
        void Start()
        {
            m_musicCurrent = musicCurrentStateObject.GetComponent <MusicCurrentState>();
            m_renderer     = gameObject.GetComponent <Renderer>();

            if (m_musicCurrent.Player.IsReady())
            {
                UpdateMat(m_musicCurrent.Player.GetPlaybackState());
            }

            m_musicCurrent.Player.AddPlaybackChangeListener(UpdateMat);
        }
Esempio n. 4
0
        void Start()
        {
            m_text         = GetComponent <TMPro.TMP_Text>();
            m_musicCurrent = currentMusicStateObject.GetComponent <MusicCurrentState>();

            if (m_musicCurrent.Player.IsReady())
            {
                OnBpmChange(m_musicCurrent.Player.GetPlayingTempo());
            }

            m_musicCurrent.Player.AddBpmChangeListener(OnBpmChange);
        }
Esempio n. 5
0
        void Start()
        {
            m_text         = GetComponent <TMPro.TMP_Text>();
            m_musicCurrent = currentMusicStateObject.GetComponent <MusicCurrentState>();

            if (m_musicCurrent.Player.IsReady())
            {
                OnSectionChange(m_musicCurrent.Player.GetSection(m_musicCurrent.Section), m_musicCurrent.Section);
            }

            m_musicCurrent.AddSectionChangeListener(OnSectionChange);
            m_musicCurrent.Player.AddMusicSwitchListener(OnMusicSwitch);
        }
Esempio n. 6
0
        void Start()
        {
            m_text         = GetComponent <TMPro.TMP_Text>();
            m_musicCurrent = currentMusicStateObject.GetComponent <MusicCurrentState>();

            bool isReady = m_musicCurrent.Player.IsReady();

            if (isReady)
            {
                SetTitle(m_musicCurrent.Player.GetTitle());
            }

            m_musicCurrent.Player.AddMusicSwitchListener(OnMusicSwitch);
        }