新增Sprite用于控制纹理
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user