CocosSharp.CCUserDefault Class
acts as a tiny database. You can save and get base type values by it. For example, setBoolForKey("played", true) will add a bool value true into the database. Its key is "played". You can get the value of the key by getBoolForKey("played").

See Also: CCUserDefault Members

Syntax

public class CCUserDefault

Remarks

CocosSharp.CCUserDefault acts as a tiny database. You can save and get base type values by it. For example, setBoolForKey("played", true) will add a bool value true into the database. Its key is "played". You can get the value of the key by getBoolForKey("played").

CocosSharp.CCUserDefault

It supports the following base types: bool, int, float, double, string

Requirements

Namespace: CocosSharp
Assembly: CocosSharp (in CocosSharp.dll)