protected override void PlaySound(AudioClip sound, SpriterSound info) { #if UNITY_EDITOR if (!UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode) { return; } #endif audioSource.panStereo = info.Panning; audioSource.PlayOneShot(sound, info.Volume); }
protected override void PlaySound(SoundEffect sound, SpriterSound info) { sound.Play(info.Volume, 0.0f, info.Panning); }