复活完成
This commit is contained in:
25
assets/script/game/hero/MasterModel.ts
Normal file
25
assets/script/game/hero/MasterModel.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { _decorator, Component, Node } from 'cc';
|
||||
import { GameEvent } from '../common/config/GameEvent';
|
||||
import { oops } from 'db://oops-framework/core/Oops';
|
||||
import { ecs } from 'db://oops-framework/libs/ecs/ECS';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ecs.register('MasterModel')
|
||||
export class MasterModelComp extends ecs.Comp {
|
||||
|
||||
onLoad(){
|
||||
oops.message.on(GameEvent.ChangeATK_EQUIP_SPECIAL_ATTR,this.change_equip_special_attr,this)
|
||||
}
|
||||
|
||||
change_equip_special_attr(e:GameEvent,data:any){
|
||||
console.log("[MasterModel]:change_equip_special_attr",data)
|
||||
}
|
||||
update(deltaTime: number) {
|
||||
|
||||
}
|
||||
reset(): void {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user