Exemplo n.º 1
0
 private void OnPlaySoundUpdate(object sender, Ash.Core.Sound.PlaySoundUpdateEventArgs e)
 {
     if (m_EnablePlaySoundUpdateEvent)
     {
         m_EventComponent.Fire(this, ReferencePool.Acquire <PlaySoundUpdateEventArgs>().Fill(e));
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 填充播放声音更新事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>播放声音更新事件。</returns>
        public PlaySoundUpdateEventArgs Fill(Ash.Core.Sound.PlaySoundUpdateEventArgs e)
        {
            PlaySoundInfo playSoundInfo = (PlaySoundInfo)e.UserData;

            SerialId        = e.SerialId;
            SoundAssetName  = e.SoundAssetName;
            SoundGroupName  = e.SoundGroupName;
            PlaySoundParams = e.PlaySoundParams;
            Progress        = e.Progress;
            BindingEntity   = playSoundInfo.BindingEntity;
            UserData        = playSoundInfo.UserData;

            return(this);
        }