Пример #1
0
 /// <summary>
 /// Plays the audio clip with the given name
 /// </summary>
 /// <param name="name">name of the audio clip to play</param>
 public static void Play(Soundname name)
 {
     audioSource1.clip = audioClips1[name];
     audioSource1.Play();
 }
Пример #2
0
 /// <summary>
 /// Plays the audio clip with the given name
 /// </summary>
 /// <param name="name">name of the audio clip to play</param>
 public static void Play(Soundname name)
 {
     audioSource.PlayOneShot(audioClips[name]);
 }