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();
 }
Esempio n. 2
0
 private void Awake()
 {
     if (direction == null)
     {
         DontDestroyOnLoad(gameObject);
         direction = this;
     }
     else
     {
         Destroy(this);
     }
 }