技能继续
This commit is contained in:
@@ -4,7 +4,7 @@ import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/modu
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
||||
import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager";
|
||||
import { MSkills, MSkillset, MSlist, SkillSet } from "../common/config/SkillSet";
|
||||
import { MSkillset, MSlist, SkillSet } from "../common/config/SkillSet";
|
||||
import { HeroModelComp } from "../hero/HeroModelComp";
|
||||
import { RewardSet } from "../common/config/RewardSet";
|
||||
import { BoxSet, GameSet } from "../common/config/BoxSet";
|
||||
@@ -22,8 +22,6 @@ import { BossList, MBSet, MissionNum, MissionSet, MonsetList } from "../common/c
|
||||
import { Timer } from "../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer";
|
||||
import { HCard } from "./HCard";
|
||||
import { HCardComp } from "./HCardComp";
|
||||
import { MSkill } from "../skills/MSkill";
|
||||
import { MSkillComp } from "../skills/MSkillComp";
|
||||
import { VictoryComp } from "./VictoryComp";
|
||||
import { ItemComp } from "./ItemComp";
|
||||
const { ccclass, property } = _decorator;
|
||||
@@ -111,12 +109,7 @@ export class MissionComp extends CCComp {
|
||||
let heros:any= this.get_heros();;
|
||||
let monsters:any= this.get_mons();
|
||||
let hcards:any= ecs.query(ecs.allOf(HCardComp));
|
||||
let mska:any= ecs.query(ecs.allOf(MSkillComp));
|
||||
let res:any= ecs.query(ecs.allOf(ItemComp));
|
||||
for(let i=0;i<mska.length;i++){
|
||||
mska[i].MSkillComp.reset()
|
||||
mska[i].MSkillComp.ent.destroy()
|
||||
}
|
||||
let rewards:any= ecs.query(ecs.allOf(ItemComp));
|
||||
// let hcns=this.node.getChildByName("hcards")
|
||||
// for(let i=0;i<hcns.children.length;i++){
|
||||
// hcns.children[i].destroy()
|
||||
@@ -133,9 +126,9 @@ export class MissionComp extends CCComp {
|
||||
monsters[i].HeroView.reset()
|
||||
monsters[i].HeroView.ent.destroy()
|
||||
}
|
||||
for(let i=0;i<res.length;i++){
|
||||
res[i].ItemComp.reset()
|
||||
res[i].ItemComp.ent.destroy()
|
||||
for(let i=0;i<rewards.length;i++){
|
||||
rewards[i].ItemComp.reset()
|
||||
rewards[i].ItemComp.ent.destroy()
|
||||
}
|
||||
}
|
||||
check_buff(){
|
||||
|
||||
Reference in New Issue
Block a user