public override void UseItem(Transform user) { //Activate mining animation //Mining if block is selected by player PlayerAttackSystem attackSystem = user.GetComponent <PlayerAttackSystem>(); attackSystem?.Attack(power, distance, this); }
public override void UseItem(Transform user) { PlayerAttackSystem attackSystem = user.GetComponent <PlayerAttackSystem>(); attackSystem?.Attack(damage, swordLength, this); }