重新 使用碰撞来处理 抛射型技能逻辑处理
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user