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

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

            m_renderer = gameObject.GetComponent <Renderer>();

            m_musicCurrent.Player.AddMuteSectionChangeListener(OnMuteSection);
            m_musicCurrent.AddSectionChangeListener(OnSectionChange);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }