Beispiel #1
0
    public void damage(float dmg, float stun, Vector2 dir, float knockback, IKillable idiot)
    {
        if (shielding)
        {
            dir.GetType();
        }

        if (!shielding)
        {
            stunned    = stun;
            knockbackV = dir.normalized * knockback;
            health    -= dmg;
        }
        else if (idiot != null)
        {
            idiot.damage(0, stun / 1.2f, -dir, knockback, this);
        }
    }