Odstraněny nepoužívané proměnné v GameLogic, opraven bug způsobjící nekonečné přehrávání předení, přidána dokumentace

This commit is contained in:
Perry 2026-03-30 19:55:25 +02:00
parent 0b750f05b5
commit 64e270c09d
3 changed files with 2 additions and 9 deletions

View file

@ -55,7 +55,6 @@ public static class SoundManager {
nekoMove = Core.content.Load<SoundEffect>("sounds/neko-move1");
bell = Core.content.Load<SoundEffect>("sounds/bell");
nekoPurrInstance = nekoPurr.CreateInstance();
ambienceInstance = ambience.CreateInstance();
}
@ -120,6 +119,7 @@ public static class SoundManager {
public static void PlayBell() => bell.Play();
public static void StartNekoPurr() {
nekoPurrInstance?.Stop();
nekoPurrInstance = nekoPurr.CreateInstance();
nekoPurrInstance.IsLooped = true;
nekoPurrInstance.Play();