private void Start() { //get the managers and set the scene and ui to the title musician = GameObject.Find("Audio Manager").GetComponent <AudioManager>(); director = GameObject.Find("Scene Manager").GetComponent <SceneManageMent>(); pager = GameObject.Find("UI Manager").GetComponent <UIManager>(); pager.ToTitle(); musician.PlayMenu(); }
private void Awake() { if (direction == null) { DontDestroyOnLoad(gameObject); direction = this; } else { Destroy(this); } }