修复transform 不更新问题

优化transform 性能问题
This commit is contained in:
yhh
2020-06-08 17:18:21 +08:00
parent cadd9ab0fc
commit 7939253622
8 changed files with 179 additions and 46 deletions

View File

@@ -51,6 +51,7 @@ class Entity {
public update(){
this.components.forEach(component => component.update());
this.transform.updateTransform();
}
public destory(){