//Account parameters public void Save() { _haveProgress = true; PlayerPrefs.SetInt("PlayersCredits", AccountSavedAccountResources.GetCredits()); PlayerPrefs.SetInt("PlayerMaterials", AccountSavedAccountResources.GetMaterials()); PlayerPrefs.SetString("PlayerShip", _playerShipName); PlayerPrefs.SetInt("HaveProgress", 1); }
public bool HaveEnoughMaterials(int value) { return(AccountSavedAccountResources.GetMaterials() > value); }