예제 #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Obstacle")
     {
         sounds.DeadMusic();
         gameController.IsDead = true;
         animator.SetBool("Moving", false);
         animator.SetBool("Dead", true);
     }
 }