Beispiel #1
0
    protected override IEnumerator Action()
    {
        charaAnimation.anim.Play("Attack");
        yield return(null);

        yield return(new WaitForAnimation(charaAnimation.anim, 0));

        yield return(StartCoroutine(opponent.Damaged(user.GetAttacOnBuff() + additionalAttackAmount * level)));
    }
Beispiel #2
0
    public override bool OnPlayedOpponent()
    {
        if (!isPlayed)
        {
            return(false);           //後行のためガード失敗
        }
        charaAnimation.anim.Play("CounterAttack");
        StartCoroutine(opponent.Damaged((int)(opponent.GetAttacOnBuff() * counterRate * user.GetTotalBuff()))); //敵の攻撃力 * カウンター倍率 * 自分のバフ倍率

        return(true);
    }