private void Init() { m_modules = gameObject.GetComponentsInChildren <ThemeModule>(); m_playModule.PlaySong(manager.m_data.Data.playingMusicNamePath, false, (float)manager.m_data.Data.musicProgressValue); m_playModule.SetSongSlider((float)manager.m_data.Data.musicProgressValue); m_playModule.SetVolumeSlider((float)manager.m_data.Data.volume); m_playModule.PreSongOnClick.OnClick += OnPreSongClick; m_playModule.NextSongOnClick.OnClick += OnNextSongOnClick; GetComponent <Canvas>().renderMode = RenderMode.WorldSpace; GetComponent <Canvas>().worldCamera = manager.m_UICamera; for (int i = 0; i < m_listModule.Listeners.Count; i++) { m_listModule.Listeners[i].OnClick += MusicItemOnclick; } m_listModule.SetPlayStatus(m_playModule.CurrentPlaySongPath); m_settingModule.GetDialogPath(FreshMusicList); }