private void Awake() { if (SoundInstance == null) { SoundInstance = this; DontDestroyOnLoad(gameObject); } else if (SoundInstance != this) { Destroy(gameObject); } }
private void Awake() { if (SoundIns == null) { SoundIns = this; } else if (SoundIns != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); }