新增跟随相机

This commit is contained in:
YHH
2020-06-19 09:16:49 +08:00
parent b83b1a5b21
commit 981e149ca5
14 changed files with 509 additions and 31 deletions

View File

@@ -88,6 +88,14 @@ class Camera extends Component {
}
}
public get position(){
return this.entity.transform.position;
}
public set position(value: Vector2){
this.entity.transform.position = value;
}
public get transformMatrix(){
if (this._areBoundsDirty)
this.updateMatrixes();