Exemplo n.º 1
0
    private IEnumerator MakeMeleeAtack()
    {
        melee_hb.size   = currentWeapon.WeaponHitbox();
        melee_hb.center = currentWeapon.WeaponCenter();
        melee_hb.GetComponent <DamageBox>().damageReference = currentWeapon.Weapon_Damage();

        yield return(new WaitForSeconds(currentWeapon.Weapon_Atack_Duration()));

        melee_hb.size = Vector3.zero;
    }