This commit is contained in:
2024-09-26 10:59:19 +08:00
parent 5831697fb8
commit bede70f49f
6 changed files with 12023 additions and 10823 deletions

View File

@@ -8,6 +8,8 @@ import { SkillSet } from "../common/config/SkillSet";
import { HeroModelComp } from "../hero/HeroModelComp";
import { RewardSet } from "../common/config/RewardSet";
import { GameSet } from "../common/config/BoxSet";
import { GameMap } from "./GameMap";
import { MapModelComp } from "./model/MapModelComp";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@@ -198,6 +200,9 @@ export class CardControllerComp extends CCComp {
smc.vm_data.gold.time = 0;
}
}
mission_change(){
this.node.getChildByName("mission").active=!this.node.getChildByName("mission").active
}
/** 视图对象通过 ecs.Entity.remove(ControllerComp) 删除组件是触发组件处理自定义释放逻辑 */
reset() {
this.node.destroy();