|
@@ -111,7 +111,7 @@ export class gameManager extends Component {
|
|
|
}
|
|
|
|
|
|
public static getUserData():UserData{
|
|
|
- let str = sys.localStorage.getItem('userData')
|
|
|
+ let str = sys.localStorage.getItem(config.USER_DATA)
|
|
|
if(str==undefined||str==""||str==null){
|
|
|
return null;
|
|
|
}
|
|
@@ -130,7 +130,7 @@ export class gameManager extends Component {
|
|
|
|
|
|
public static saveUserData(){
|
|
|
if(gameManager.g_userData!=null){
|
|
|
- sys.localStorage.setItem('userData', JSON.stringify(gameManager.g_userData));
|
|
|
+ sys.localStorage.setItem(config.USER_DATA, JSON.stringify(gameManager.g_userData));
|
|
|
}
|
|
|
}
|
|
|
|