Exemplo n.º 1
0
    ///////////////////////////////////////
    //  EQUIP
    ///////////////////////////////////////
    public void Equip()
    {
        _hero   = Main.instance.GetChar();
        _shield = _hero.escudo;
        dmgData = auxShield.GetComponent <DamageData>();
        dmgData.Initialize(_hero);
        dmgData.SetDamage(damage).SetDamageTick(false).SetDamageType(damageType).SetKnockback(0).SetPositionAndDirection(_shield.transform.position);

        auxParent    = auxShield.transform.parent;
        shieldStates = boomerangShieldStates.idle;
    }