This commit is contained in:
glax 2024-02-17 21:33:56 +01:00
parent ccd496c168
commit 7a8cfd315c

View File

@ -18,9 +18,9 @@ public class Watchdog : IDisposable, IAsyncDisposable
this._logger = new Logger(LogLevel.Information, consoleOut: Console.Out); this._logger = new Logger(LogLevel.Information, consoleOut: Console.Out);
this._gsi = new GSI(this._logger); this._gsi = new GSI(this._logger);
this._gsi.OnRoundStart += MusicStart; this._gsi.OnRoundStart += MusicStop;
this._gsi.OnRoundOver += MusicStop; this._gsi.OnRoundOver += MusicStart;
this._gsi.OnDeath += MusicStop; this._gsi.OnDeath += MusicStart;
Console.WriteLine("Press p to pause/play media."); Console.WriteLine("Press p to pause/play media.");
while (_keepRunning) while (_keepRunning)