// Start is called before the first frame update private void Awake() { Instance = this; DontDestroyCamera(); DontDestroyMusic(); }
// Start is called before the first frame update void Start() { DontDestroyOnLoad(gameObject); if (musicaInstance == null) { musicaInstance = this; } else { Destroy(gameObject); } }