Exemplo n.º 1
0
 public void StartAttack(Attack newAttack, FighterAnimations newAnimation, bool allowFlip = true)
 {
     if (allowFlip)
     {
         state.ProcessFacingDirection();
     }
     attackPlayer.StartAttack(newAttack, newAnimation);
 }
Exemplo n.º 2
0
        // handle beginning of jump command
        public void StartJump(Attack newJump, FighterAnimations newAnimation)
        {
            currentJump = newJump;
            state.SetState(newJump.state);
            spriteAnimator.PlayAnimation(newAnimation, true);

            currentJump.Start();
            isJumping = true;
        }
Exemplo n.º 3
0
        // handle beginning of attack command
        public void StartAttack(Attack newAttack, FighterAnimations newAnimation)
        {
            currentAttack = newAttack;
            state.SetState(newAttack.state);
            animator.PlayAnimation(newAnimation, true);

            currentAttack.Start();
            isAttacking = true;
        }
Exemplo n.º 4
0
 public void setAnime(FighterAnimations _anime)
 {
     this.anime = _anime;
 }