示例#1
0
 public void StartAttack(Attack newAttack, FighterAnimations newAnimation, bool allowFlip = true)
 {
     if (allowFlip)
     {
         state.ProcessFacingDirection();
     }
     attackPlayer.StartAttack(newAttack, newAnimation);
 }
示例#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;
        }
示例#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;
        }
示例#4
0
 public void setAnime(FighterAnimations _anime)
 {
     this.anime = _anime;
 }