觉醒时刻
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
1.1 KiB

import User from "../../../FrameWork/User/User";
import PrefabManage, { GameType } from "../../PrefabManager/PrefabManage";
import GameBase_CNXX from "./GameBase_CNXX";
import { GameFirstLevelManage, GameSecondLevelManage } from "./GameDataManage2";
const { ccclass, property } = cc._decorator;
@ccclass
export default class Game_firstLevel extends GameBase_CNXX {
onLoad(): void {
GameFirstLevelManage.initStartData()
}
start() {
super.start()
PrefabManage.loadPrefabByType(GameType.CNXX_SelectLevelView);
}
failResult(){
}
successResult(){
let exitCallFunc = ()=>{
// UserManager.addPeopleIQ(1)
User.setQieLevel(1);
PrefabManage.loadPrefabByType(GameType.CNXX_secondLevel)
this.node.removeFromParent()
this.node.destroy()
}
this.scheduleOnce(()=>{
exitCallFunc()
},0.8)
// PrefabManage.loadPrefabByType(GameType.CNXX_Success,null,(prefabNode)=>{
// prefabNode.getComponent(Result_success2).initView(1,exitCallFunc)
// })
return
}
}