/// <summary> /// Send to all client to stop playing a sound /// </summary> /// <param name="name">The SoundSpawn Token that identifies the sound instance to stop.</param> /// <returns>The sent message</returns> public static StopSoundMessage SendToAll(string soundSpawnToken) { StopSoundMessage msg = new StopSoundMessage { SoundSpawnToken = soundSpawnToken }; msg.SendToAll(); return(msg); }
/// <summary> /// Send to all client to stop playing a sound /// </summary> /// <param name="name">The name of the sound.</param> /// <returns>The sent message</returns> public static StopSoundMessage SendToAll(string name) { StopSoundMessage msg = new StopSoundMessage { Name = name }; msg.SendToAll(); return(msg); }
/// <summary> /// Tell all clients to stop playing a sound /// </summary> /// <param name="soundSpawnToken">The SoundSpawn Token that identifies the sound to be stopped</returns> public static void StopNetworked(string soundSpawnToken) { StopSoundMessage.SendToAll(soundSpawnToken); }
/// <summary> /// Tell all clients to stop playing a sound /// </summary> /// <param name="name">The sound to be stopped</param> public static void StopNetworked(string name) { StopSoundMessage.SendToAll(name); }