Ejemplo n.º 1
0
    protected override void OnCantMove <T> (T component)
    {
        animator.SetTrigger("playerHit");
        SoundManager.instance.RandomizeSfx(hitSound);
        Barrier hitBarrier = component as Barrier;

        hitBarrier.DamageBarrier(barrierDamage);
        LoseEnergy(barrierHitEnergyLoss);
    }