Ejemplo n.º 1
0
    // ==== passive action =======
    public void TakeDamage(Attack attack)
    {
        info.Damage(attack.GetDamage());
        if (info.IsDead())
        {
            return;
        }

        float time = attack.GetDamage() / 10f;

        time = 2f;
        actionTable [Action.Type.Damage].SetPlayerUntilAnimationTime(time);
        actionTable [Action.Type.Damage].TriggerAction();
    }