Ejemplo n.º 1
0
        public override void DrawAnimation(Spine.SkeletonMeshRenderer skeletonRenderer)
        {
            bool spyAnimationIsPlaying = currentAnimation == specialAnimations[Character.Special.Spy];

            if (currentAnimation.IsPlayingAnimation && spyAnimationIsPlaying)
            {
                currentAnimation.Draw(skeletonRenderer);
            }

            if (show || myAttackTurn)
            {
                character.DrawAnimation(skeletonRenderer);
            }

            if (show || !myAttackTurn)
            {
                enemyCharacter.DrawAnimation(skeletonRenderer);
            }

            if (hitEffect.Time < END_TIME_HIT_ANIMATION)
            {
                hitEffect.Draw(skeletonRenderer);
            }

            if (currentAnimation.IsPlayingAnimation && !spyAnimationIsPlaying)
            {
                currentAnimation.Draw(skeletonRenderer);
            }
        }
Ejemplo n.º 2
0
 public override void DrawAnimation(Spine.SkeletonMeshRenderer skeletonRenderer)
 {
     searchMatchAnimation.Draw(skeletonRenderer);
 }