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:
parent
0b750f05b5
commit
64e270c09d
3 changed files with 2 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue