示例#1
0
 /// <summary>
 /// Plays the sound associated with the given id immediately and once
 /// </summary>
 /// <param name="soundId">a sound id</param>
 public static Promise <Lifetime> Play(string soundId) => Provider.Play(soundId.ToLower());
示例#2
0
 /// <summary>
 /// Plays the sound associated with the given id immediately and once
 /// </summary>
 /// <param name="soundId">a sound id</param>
 public static Task <Lifetime> Play(string soundId, float volume = 1) => Provider.Play(soundId.ToLower(), volume);