战斗管理系统基础
This commit is contained in:
13
assets/script/game/battle/BattleManagerComp.ts
Normal file
13
assets/script/game/battle/BattleManagerComp.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
|
||||
/** 战斗管理组件 */
|
||||
@ecs.register('BattleManager')
|
||||
export class BattleManagerComp extends ecs.Comp {
|
||||
/** 单例实例 */
|
||||
static instance: ecs.Entity;
|
||||
|
||||
reset() {
|
||||
BattleManagerComp.instance = this.ent;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user