void OnDestroy() { if (inst == this) { inst = null; } }
void Awake() { inst = this; foreach (var src in transform.GetComponentsInChildren <AudioSource>()) { sources[src.name.ToLower()] = src; } }