public virtual void PlaySound(SoundPropierty sound)
        {
            _player.clip         = sound.clip;
            _player.volume       = sound.volume;
            _player.pitch        = sound.pitch;
            _player.spatialBlend = sound.spatialBlend;
            _player.panStereo    = sound.stereoPan;
            _player.loop         = sound.loop;
            _player.volume       = sound.volume;

            PlaySound();
        }
Exemple #2
0
        protected void PlaySound(SoundPropierty sound)
        {
            _audioSource.clip         = sound.clip;
            _audioSource.volume       = sound.volume;
            _audioSource.pitch        = sound.pitch;
            _audioSource.spatialBlend = sound.spatialBlend;
            _audioSource.panStereo    = sound.stereoPan;
            _audioSource.loop         = sound.loop;
            _audioSource.volume       = sound.volume;

            PlaySound();
        }
        public override void PlaySound(SoundPropierty sound)
        {
            FindFreeSource();

            base.PlaySound(sound);
        }