예제 #1
0
 // Update is called once per frame
 void Update()
 {
     if (MusicPlayer.GetIsPlaying())
     {
         GameObject.Find("SongTimeText").GetComponent <Text>().text = LanguageManager.ConvToTime(MusicPlayer.GetAudioPos() * MusicPlayer.GetSongLength()) +
                                                                      "/" + LanguageManager.ConvToTime(MusicPlayer.GetSongLength());
     }
 }
예제 #2
0
 // Update is called once per frame
 void Update()
 {
     if (MusicPlayer.GetIsPlaying())
     {
         m_Scrollbar.value = MusicPlayer.GetAudioPos();
     }
     else
     {
     }
     if (MusicPlayer.GetCurAudio() != "" || MusicPlayer.GetCurAudio() != null)
     {
         GameObject.Find("SongTimeText").GetComponent <Text>().text = LanguageManager.ConvToTime(m_Scrollbar.value * MusicPlayer.GetSongLength()) +
                                                                      "/" + LanguageManager.ConvToTime(MusicPlayer.GetSongLength());
     }
 }