手机测试卡,需要解决
This commit is contained in:
@@ -14,6 +14,8 @@ import { Talents } from "../common/config/TalentSet";
|
||||
import { HeroViewComp } from "../hero/HeroViewComp";
|
||||
import { Position } from "../../../../extensions/oops-plugin-framework/assets/libs/gui/badge/Badge";
|
||||
import { MissionHomeComp } from "./MissionHomeComp";
|
||||
import { GameEvent } from "../common/config/GameEvent";
|
||||
import { MissionComp } from "./MissionComp";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
/** 视图层对象 */
|
||||
@@ -27,6 +29,7 @@ export class CardControllerComp extends CCComp {
|
||||
bbg_x:any=[-300,-150,0,150,300]
|
||||
protected onLoad(): void {
|
||||
this.bbg=this.node.getChildByName("bar").getChildByName("bbg")
|
||||
oops.message.on(GameEvent.MissionStart,this.mission_start,this)
|
||||
}
|
||||
start() {
|
||||
this.bbg=this.node.getChildByName("bar").getChildByName("bbg")
|
||||
@@ -53,6 +56,13 @@ export class CardControllerComp extends CCComp {
|
||||
this.node.getChildByName("mission").active = false;
|
||||
|
||||
}
|
||||
mission_start(){
|
||||
this.node.getChildByName("bar").active=false;
|
||||
let mission=this.node.getChildByName("mission").getComponent(MissionComp)
|
||||
mission.node.active = true;
|
||||
mission.mission_start()
|
||||
smc.mission.play = true;
|
||||
}
|
||||
bar_change(e:any,args:any){
|
||||
console.log("bar_change",args)
|
||||
this.node.getChildByName("bar").active=true;
|
||||
|
||||
Reference in New Issue
Block a user