去掉原先的monster文件夹下面文件

This commit is contained in:
pan@work
2024-09-11 10:41:49 +08:00
parent f5a8cb20de
commit b5406bd9af
38 changed files with 17 additions and 5200 deletions

View File

@@ -3,12 +3,10 @@ import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ec
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import { smc } from "../common/SingletonModuleComp";
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
import { HeroCard } from "../monster/HeroCard";
import { HeroCardViewComp } from "../monster/HeroCardViewComp";
import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager";
import { CardList } from "../common/config/CardSet";
import { HeroModelComp } from "../monster/HeroModelComp";
import { SkillSet } from "../common/config/SkillSet";
import { HeroModelComp } from "../hero/HeroModelComp";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@@ -301,13 +299,13 @@ export class CardControllerComp extends CCComp {
// console.log("cards:",this.cards)
}
check_card(index:number){
let heros = ecs.query(ecs.allOf(HeroModelComp))
// let heros = ecs.query(ecs.allOf(HeroModelComp))
// let heross= ecs.query(ecs.allOf(MonsterViewComp))
// console.log("heross",heross)
if(heros.length >= 4&&this.cards[index].type == 1){
oops.gui.toast("英雄数量达到上限");
return;
}
// if(heros.length >= 4&&this.cards[index].type == 1){
// oops.gui.toast("英雄数量达到上限");
// return;
// }
if(!this.cards[index].alive) {
// console.log("card_index:",index,"card_alive:",this.cards[index].alive)
return;