Optimization and Documentation

This commit is contained in:
2025-12-18 03:44:51 +08:00
parent 1d134ffc40
commit 668bd03f63
10 changed files with 204 additions and 53 deletions

View File

@@ -25,7 +25,7 @@ namespace Services
public void PlaySound(AudioClip clip)
{
if (clip == null) return;
if (this.source == null) return; // In case called before Initialize in some edge setup
if (this.source == null) return; // In case it's called before Initialize in some edge setup
this.source.PlayOneShot(clip);
}