unity savedata - crashkonijn/AirController GitHub Wiki

SaveData

Methods

// Sets an int to the savedata
public void SetInt (string key, int i){}

// Returns an int from the savedata, returns the defaultValue when there's none
public int GetInt (string key, int defaultValue = 0){}

// Sets a string to the savedata
public void SetString(string key, string s){}

// Returns a string from the savedata, returns the defaultValue when there's none
public string GetString (string key, string defaultValue = ""){}