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); }