public IEnumerator Die() { PlayAnimation(deathAnimation); int num = default(int); if (m_animator2D.CurrentAnimationHasLabel("die", ref num)) { while (!HasAnimationReachedLabel(m_animator2D, deathAnimation, "die")) { yield return(null); } m_animator2D.set_paused(true); } else { Log.Warning(m_animator2D.GetDefinition().get_name() + " is missing the 'die' label in the animation named '" + deathAnimation + "'.", 151, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Maps\\Objects\\BossObject.cs"); } }
private unsafe void OnAnimatorInitialized(object sender, Animator2DInitialisedEventArgs e) { //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown Animator2D animator2D = m_animator2D; animator2D.remove_Initialised(new Animator2DInitialisedEventHandler((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); animator2D.set_paused(false); PlayIdleAnimation(); }
protected override IEnumerator PlayDeathAnimation() { CharacterAnimationInfo deathAnimationInfo = new CharacterAnimationInfo(Vector2Int.op_Implicit(m_cellObject.coords), "hit", "death", loops: false, direction, m_mapRotation); StartFightAnimation(deathAnimationInfo, null, null, restart: false); Animator2D animator = m_animator2D; int num = default(int); if (animator.CurrentAnimationHasLabel("die", ref num)) { while (!CharacterObjectUtility.HasAnimationReachedLabel(animator, deathAnimationInfo, "die")) { yield return(null); } animator.set_paused(true); } else { Log.Warning(animator.GetDefinition().get_name() + " is missing the 'die' label in the animation named '" + deathAnimationInfo.animationName + "'.", 244, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Maps\\Objects\\BoardCharacterObject.cs"); } }