void Awake() { if(Instance) DestroyImmediate(gameObject); else { DontDestroyOnLoad(gameObject); Instance = this; } }
void Awake() { if (instance) { Destroy(audio); } else { instance = this; DontDestroyOnLoad(audio); } }