新增Sprite用于控制纹理

This commit is contained in:
yhh
2020-06-19 18:16:42 +08:00
parent 981e149ca5
commit d22c5775c2
18 changed files with 348 additions and 191 deletions

View File

@@ -128,6 +128,13 @@ class Entity {
this.setTag(value);
}
public get stage(){
if (!this.scene)
return null;
return this.scene.stage;
}
constructor(name: string){
this.name = name;
this.transform = new Transform(this);