使用ecs系统进行重构
This commit is contained in:
14
assets/script/game/hero/Aheros/BaseComp.ts
Normal file
14
assets/script/game/hero/Aheros/BaseComp.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { _decorator, Component, Node } from 'cc';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('BaseComp')
|
||||
export class BaseComp extends Component {
|
||||
start() {
|
||||
|
||||
}
|
||||
|
||||
update(deltaTime: number) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user