I have made a simple clicker game in unity using C#. I would like to know if there is an easy way to save numbers, (examples:Cash,Cash Per Second)
you can use playerPrefs.this is very simple and easy. for example this code will save how many times you pressed K button.
public int counter;
void Start(){
counter=PlayerPrefs.GetInt("COUNTER");
}
void Update(){
if (Input.GetKeyDown (KeyCode.K)) {
counter++;
PlayerPrefs.SetInt("COUNTER",counter);
}
}
so every time that you push k it will save it in your registry I guess
it also works on android platform.