修复physics register失效问题

This commit is contained in:
yhh
2020-06-16 11:59:40 +08:00
parent 8b21edc65f
commit ced176706b
14 changed files with 169 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ class SpawnComponent extends Component implements ITriggerListener {
public update() {
// console.log("update");
this.entity.getComponent<Mover>(Mover).move(new Vector2(1, 0));
this.entity.getComponent<Mover>(Mover).move(new Vector2(0, 0));
}
public onTriggerEnter(other: Collider, local: Collider){