// Start is called before the first frame update void Start() { if (player == null) { audioSource = GetComponent <AudioSource>(); DontDestroyOnLoad(gameObject); player = this; } else { Destroy(gameObject); } }
void Awake() { descriptionAnimator = descriptionPanel.GetComponent <Animator>(); musicPlayer = GetComponent <MenuMusicPlayer>(); }