public void OnPlaySound(ISound sound, ISoundEvents evetns) { Playlist.StopAllPlaying(); soundsavelist.Add(sound); if (source.clip != null && source.clip == sound.GetClip() && source.time < source.clip.length) { source.UnPause(); } else { source.clip = sound.GetClip(); source.Stop(); source.Play(); } soundEvents = evetns; soundEvents.PlayingProgress(source.time / source.clip.length); Controls.PlaySound(); }