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