private void TriggerAnimation(string triggername)
{
if (((this.animator != null) && this.animator.isActiveAndEnabled) && ((this.animator.runtimeAnimatorController != null) && !string.IsNullOrEmpty(triggername)))
{
this.animator.ResetTrigger(this.m_AnimationTriggers.normalTrigger);
this.animator.ResetTrigger(this.m_AnimationTriggers.pressedTrigger);
this.animator.ResetTrigger(this.m_AnimationTriggers.highlightedTrigger);
this.animator.ResetTrigger(this.m_AnimationTriggers.disabledTrigger);
this.animator.SetTrigger(triggername);
}
}