Optimization and Documentation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user