Example #1
0
        public static void PlaySoundWithDelay(string _audioName, float _delay)
        {
            AudioInterface audioClip = instance.GetAudioClip(_audioName);

            if (audioClip != null)
            {
                audioClip.Play(_delay);
            }
        }
Example #2
0
        public static void PlaySound(string _audioName)
        {
            AudioInterface audioClip = instance.GetAudioClip(_audioName);

            if (audioClip != null)
            {
                audioClip.Play();
            }
        }
Example #3
0
        public static void PlayAudioClipAtPoint(string audioName, Vector3 vector3Point)
        {
            AudioInterface audioClip = instance.GetAudioClip(audioName);

            if (audioClip != null)
            {
                audioClip.PlayAtPoint(vector3Point);
                return;
            }
        }