重新 使用碰撞来处理 抛射型技能逻辑处理

This commit is contained in:
2025-03-26 11:04:58 +08:00
parent 0f9fb4e8fb
commit ae30a865c7
23 changed files with 388 additions and 1352 deletions

View File

@@ -17,15 +17,18 @@ const { ccclass, property } = _decorator;
export class MissionHeroCompComp extends CCComp {
timer:Timer=new Timer(2)
onLoad(){
this.on(GameEvent.UserHeroCard,this.call_hero,this)
// this.on(GameEvent.UserHeroCard,this.call_hero,this)
}
start() {
this.test_call()
}
protected update(dt: number): void {
if(smc.mission.status != 1) return
}
test_call(){
this.addHero(5010)
}
call_hero(event: string, args: any){
this.timer.reset()
let hero_list =HeroList