实体跟随相机
This commit is contained in:
17
source/src/ECS/Component.ts
Normal file
17
source/src/ECS/Component.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
abstract class Component {
|
||||
public entity: Entity;
|
||||
public displayRender: egret.DisplayObject;
|
||||
|
||||
public abstract initialize();
|
||||
|
||||
public update(){
|
||||
|
||||
}
|
||||
|
||||
/** 绑定显示对象 */
|
||||
public bind(displayRender: egret.DisplayObject){
|
||||
this.displayRender = displayRender;
|
||||
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user