Ejemplo n.º 1
0
 void Awake()
 {
     if (instance == null)
     {
         GameObject.DontDestroyOnLoad(this.gameObject);
         instance = this;
     }
     else
     {
         GameObject.Destroy(this.gameObject);
     }
 }
 void Start()
 {
     sound = GameObject.Find("BossAudioManager").GetComponent <BossAudioManager> ();
 }
 void Start()
 {
     sound = GameObject.Find("BossAudioManager").GetComponent <BossAudioManager> ();
     bl.SetActive(true);
 }