Skip to content

Commit

Permalink
GameObject must syncTo as well
Browse files Browse the repository at this point in the history
  • Loading branch information
namel committed May 25, 2017
1 parent 79f84af commit 641acf3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/serialize/GameObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,12 @@ class GameObject extends Serializable {

/**
* synchronize this object to the state of an other object
* @param {GameObject} other
* @param {GameObject} other the other object to synchronize to
*/
syncTo(other) {
this.id = other.id;
super.syncTo(other);
}


// copy physical attributes to physics sub-object
refreshToPhysics() {}

Expand Down

0 comments on commit 641acf3

Please sign in to comment.