StopSound() public method

Stops playing sound
public StopSound ( bool immediate ) : void
immediate bool
return void
示例#1
0
		/// <summary>
		/// 
		/// </summary>
		/// <returns>True if the emitter is successfully found and removed; otherwise, false</returns>
		public bool FreeEmitter ( AudioEmitter emitter )
		{
			emitter.StopSound(true);
			return emitters.Remove(emitter);
		}
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns>True if the emitter is successfully found and removed; otherwise, false</returns>
 public bool FreeEmitter(AudioEmitter emitter)
 {
     emitter.StopSound(true);
     return(emitters.Remove(emitter));
 }