I am trying to play death animation from anystate . I got this error : Transition ‘’ in state ‘AnyState’ uses parameter ‘Death’ which does not exist in controller.
UnityEditor.DockArea:OnGUI()
void Start ()
{
anim = GetComponent<Animator> ();
}
if (m_DeactivateOnDeath) {
Scheduler.Schedule(m_DeactivateOnDeathDelay, Deactivate);
GetComponent<AudioSource>().Play();
anim.SetTrigger("Dead");
}
}