清理 老的 没用的组件

This commit is contained in:
2025-08-14 16:39:06 +08:00
parent f539cf9b7b
commit 6adff46fd1
59 changed files with 2145 additions and 52918 deletions

View File

@@ -10,7 +10,6 @@ import { HeroViewComp } from "../hero/HeroViewComp";
import { oops } from "db://oops-framework/core/Oops";
import { HeroPos } from "../common/config/heroSet";
import { FightSet } from "../common/config/Mission";
import { FriendModelComp } from "../hero/FriendModel";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@@ -129,7 +128,7 @@ export class MissionHeroCompComp extends CCComp {
get_info_and_remove(fight_pos:number,uuid:number){
let info:any={ap:0,hp:0,lv:1,crit:0,crit_d:0,dod:0,dod_no:false,crit_no:false}
let heros=ecs.query(ecs.allOf(FriendModelComp))
let heros=ecs.query(ecs.allOf(HeroModelComp))
if(heros.length>0){
let hero = heros[0]
let hv = hero.get(HeroViewComp)