private void buy() { if (UserUnlockable.getMoney() >= value) { UserUnlockable.addMoney(-value); bought = true; valueUI.text = "OWNED"; UserUnlockable.saveWeapon(thisWeapon.getWeaponIndex(), true); } }
private void Awake() { UserUnlockable.saveWeapon(0, true); }