Exemplo n.º 1
0
    void TriggerEnter(Collider2D box)
    {
        BaseCharacter bc = box.gameObject.GetComponent <BaseCharacter>();

        if (canHurt && bc != null)
        {
            bc.DealDamage(damage, baseDamage, dexCriticalRatio, criticalRatio, bc);
        }
    }