mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-11-07 23:06:03 +00:00
更新登录
This commit is contained in:
30
JisolGameCocos/assets/script/consts/GData.ts
Normal file
30
JisolGameCocos/assets/script/consts/GData.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { sys } from "cc";
|
||||
|
||||
export enum StorageEnum{
|
||||
|
||||
Token = "Storage_Token", // Token
|
||||
|
||||
}
|
||||
|
||||
export class StorageData {
|
||||
|
||||
static get(key:string):string{
|
||||
return sys.localStorage.getItem(key);
|
||||
}
|
||||
|
||||
static set(key:string,value:string){
|
||||
sys.localStorage.setItem(key,value);
|
||||
}
|
||||
|
||||
static delect(key:string){
|
||||
sys.localStorage.removeItem(key);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export const GData = {
|
||||
layer: {
|
||||
World: 1,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user