private void Awake() { if (musicaControle != null) { Destroy(gameObject); } else { musicaControle = this; DontDestroyOnLoad(gameObject); } }
private void Awake() //Singleton { if (musicaControle != null) { Destroy(gameObject); } else { musicaControle = this; GameObject.DontDestroyOnLoad(gameObject); } }