예제 #1
0
 /// <summary>
 /// 精英攻击
 /// </summary>
 private void EliteAttack()
 {
     normalAttackNumber++;
     if (normalAttackNumber > 1)
     {
         normalAttackNumber = 0;
         birdAttackMode     = BirdAttackMode.Special;
         DoubleCombo();
     }
     else
     {
         Attack();
     }
 }
예제 #2
0
    IEnumerator DoubleComboTask()
    {
        //播放攻击动作
        CurrentSkeleton.AnimationState.TimeScale = 2;
        DelayAttack(0.25f);

        //记录动画
        specialAttackCustom = new Custom();
        yield return(specialAttackCustom);

        //回归正常
        birdAttackMode = BirdAttackMode.Normal;
        CurrentSkeleton.AnimationState.TimeScale = 1;
        specialAttackTimes = 0;
        StandBy(false);
        specialAttackCorotine = null;
    }