private static void SetSoundResource(SoundParam param)
        {
            param.source_ = SoundResources.GetAudioSource(param.category_id_);

            param.source_.clip   = param.clip_;
            param.source_.volume = param.volume_;
            param.source_.loop   = param.loop_;

            sound_play_list_[param.category_id_].Add(param);
        }
示例#2
0
 public static void Init()
 {
     if (bgm_ == null && se_ == null)
     {
         bgm_ = new BGM();
         se_  = new SE();
         SoundResources.Init();
         SoundSystem.Init();
         Debug.Log("<color=green> SoundManager is initialized!!! </color>");
     }
     else
     {
         Debug.LogWarning("SoundManager has been initialized!!!!");
     }
 }