修复 buff 逻辑处理 bug : 预制体不能设置全局监听oops.message.on,会一直执行

This commit is contained in:
walkpan
2024-08-28 00:09:55 +08:00
parent 5b1991c90f
commit 4096a17330
15 changed files with 195 additions and 143 deletions

View File

@@ -13,6 +13,7 @@ import { UIID } from "../common/config/GameUIConfig";
import { LoadingViewComp } from "./view/LoadingViewComp";
import { smc } from "../common/SingletonModuleComp";
import { HeroList } from "../map/HeroList";
import { SkillSet } from "../common/config/SkillSet";
// import {data} from "../data/data";
/**
@@ -87,6 +88,7 @@ export class Initialize extends ecs.Entity {
this.HeroList = new HeroList();
this.HeroList.init(); // 等待数据加载完成
smc.heros = this.HeroList.list;
smc.skills=SkillSet;
var uic: UICallbacks = {
onAdded: (node: Node, params: any) => {
var comp = node.getComponent(LoadingViewComp) as ecs.Comp;