Exemplo n.º 1
0
    /*
     * Methods called by animations.
     */

    public void SpawnDamage()
    {
        DamageScript.SpawnDamage(damagePoint.position, damageRadius, 1, health);
    }
Exemplo n.º 2
0
    // Called by animations

    public void DealDamage()
    {
        // Spawn a damage object
        DamageScript.SpawnDamage(damagePoint.position, damageRadius, damage: 1, source: health);
    }