引导 基本完成

This commit is contained in:
2025-08-25 17:28:02 +08:00
parent 6a29821a7b
commit 6c95b3acc3
17 changed files with 1085 additions and 508 deletions

View File

@@ -22,7 +22,6 @@ export class MissionHomeComp extends CCComp {
this.home_active()
}
onEnable(){
this.endGuide()
this.startNextGuide(); // 启动第一个引导
startGuide(1)
startGuide(2)
@@ -36,11 +35,10 @@ export class MissionHomeComp extends CCComp {
}
}
private endGuide(){
// finishCurrGuide(0)
}
start_mission() {
finishCurrGuide(1)
finishCurrGuide(10)
oops.message.dispatchEvent(GameEvent.MissionStart, {})
this.node.active=false;
}
@@ -86,13 +84,13 @@ export class MissionHomeComp extends CCComp {
btn_shop.getChildByName("act").active=true
break
case "heros":
page_heros.active=true
finishCurrGuide(2)
let page_heros_com=page_heros.getComponent(HeroPageComp)!
page_heros_com.update_heros()
page_heros.active=true
btn_heros.getChildByName("act").active=true
break
case "fight":
finishCurrGuide(7)
startGuide(8)
btn_fight.getChildByName("act").active=true
break
case "skill":