示例#1
0
    public override void SetDamage(Damage damage)
    {
        if (damage.Knockout)
        {
            isKnockOut   = true;
            timeKnockout = 0;
            _knockoutActor.KnockOut(DieDistancePower, MaxDieDistanceX);
        }

        base.SetDamage(damage);
    }
示例#2
0
    public override void SetDamage(Damage damage)
    {
        if (_knockoutActor.DoKnockOut)
        {
            return;
        }

        base.SetDamage(damage);

        if (damage.Knockout)
        {
            isKnockOut   = true;
            Stunned      = false;
            timeKnockout = 0;
            _knockoutActor.KnockOut(DieDistancePower, MaxDieDistanceX);
        }
    }