新增IUpdatable接口 用于减少update所带来的的性能损耗

This commit is contained in:
yhh
2020-07-10 11:24:42 +08:00
parent 877fc4c9bf
commit f6c2d81a83
14 changed files with 238 additions and 79 deletions

View File

@@ -1,5 +1,5 @@
///<reference path="../Component.ts"/>
class Camera extends Component {
class Camera extends Component implements IUpdatable {
private _zoom;
private _origin: Vector2 = Vector2.zero;