/**
  * Play an audio loop given its name.
  */
 private void PlayAudioLoop(string eventName)
 {
     if (eventName != currentEvent)
     {
         StopAudioLoop();
         AudioService.PlayLoop(gameObject, eventName);
         currentEvent = eventName;
     }
 }
Example #2
0
 private void Start()
 {
     AudioService.PlayLoop(gameObject, "Game Music");
 }