PlayerPrefs.GetInt 获取整数键值
static function GetInt (key : string, defaultValue : int = 0) : int
Description描述
Returns the value corresponding to key in the preference file if it exists.
如果存在,返回偏好文件中key对应的值。
If it doesn't exist, it will return defaultValue.
如果不存在,将返回默认值。
print (PlayerPrefs.GetInt("Player Score"));
最后修改:2011年3月11日 Friday 13:29