Ejemplo n.º 1
0
        /// <summary>
        /// Plays animation for when attack is dodged
        /// </summary>
        /// <param name="animationClipName"> Name of animation to play overtop of monster </param>
        /// <returns> IEnumerator for animations</returns>
        public IEnumerator DisplayAttackDodged(string animationClipName)
        {
            isAnimating = true;
            SetEffectsAnimatorClip(animationClipName);
            yield return(StartCoroutine(PlayAnimation(effectsAnimator, "attacked")));

            dt.ShowDodged();
            yield return(StartCoroutine(PlayAnimation(dt.textAnimator, "showDamage")));

            dt.HideDamage();
            isAnimating = false;
        }