public void upgradeWeapon() { if (core.checkIfEnoughMoney(wpnUpgCost)) { core.upgradeWeapon(wpnUpgCost, wpnDmgUpgrade); wpnUpgCost = Mathf.RoundToInt(wpnUpgCostMultiplier * wpnUpgCost); } }