更新登录

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-08 02:32:54 +08:00
parent 0b9cf0ea9b
commit c4e2798430
34 changed files with 3330 additions and 53 deletions

View 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,
}
}