Esempio n. 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.GetComponent <PlayerControl>())
     {
         StartCoroutine(musicPlaylist.FadeOutAtBossFight(2));
         timeline.SetActive(true);
         enterFence.SetActive(true);
         exitFence.SetActive(true);
         Destroy(GetComponent <BoxCollider>());
     }
 }