private void OnDestroy() { if (SoundSistem.instance == this) { SoundSistem.instance = null; } }
private void Awake() { if (SoundSistem.instance == null) { SoundSistem.instance = this; } else if (SoundSistem.instance != this) { Destroy(gameObject); } }