Пример #1
0
        void Start()
        {
            m_musicCurrent = musicCurrentStateObject.GetComponent <MusicCurrentState>();

            m_renderer          = gameObject.GetComponent <Renderer>();
            m_renderer.material = matSign;
        }
Пример #2
0
        void Start()
        {
            m_musicCurrent = musicCurrentStateObject.GetComponent <MusicCurrentState>();

            m_renderer = gameObject.GetComponent <Renderer>();

            m_musicCurrent.Player.AddMuteSectionChangeListener(OnMuteSection);
            m_musicCurrent.AddSectionChangeListener(OnSectionChange);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }