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