提交聊天

This commit is contained in:
PC-20230316NUNE\Administrator
2023-11-14 18:52:25 +08:00
parent 5a43eb197b
commit 93ae85e88b
33 changed files with 2047 additions and 4757 deletions

View File

@@ -1,30 +0,0 @@
import Singleton from "../../../../extensions/ngame/assets/ngame/util/Singleton";
import { app } from "../../App";
import PlayerData from "../../data/PlayerData";
import PlayerPetData from "../../data/PlayerPetData";
import { GUI } from "../UIConfig";
export default class NoviceManager extends Singleton{
//新手引导执行
async onStart(){
//获取玩家信息是否引导过
if(!(PlayerData.getIns().data.novice)){
//如果没有过引导则打开引导页面
await app.layer.OpenToClose(GUI.NoviceNamingView);
}
//获取玩家信息是否选择过宠物(有没有宠物)
//如果没有宠物则弹出让玩家选择宠物
if(PlayerPetData.getIns().getData().length == 0){
//没有宠物则弹出选择宠物页面
await app.layer.OpenToClose(GUI.NoviceSelectPetView);
}
console.log("新手引导结束");
}
}

View File

@@ -1,9 +0,0 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "8b5cc1e0-3fa2-4ee3-b93b-2da9878f9c8c",
"files": [],
"subMetas": {},
"userData": {}
}