引导 基本完成
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user