private void Awake() { if (m_instance != null) { Destroy(gameObject); } m_instance = this; if (transform.root != null) { transform.SetParent(null, false); } DontDestroyOnLoad(gameObject); m_saveHelper = GetComponent <SaveHelper>(); m_musicManager = GetComponent <MusicManager>(); }
private void Awake() { m_titleMenu = GetComponent <TitleMenu>(); }