fix clearing walls on restart/pause
This commit is contained in:
@@ -7,6 +7,10 @@ AFRAME.registerComponent('wall', {
|
||||
this.maxZ = 10;
|
||||
},
|
||||
|
||||
pause: function () {
|
||||
this.el.object3D.visible = false;
|
||||
},
|
||||
|
||||
tock: function (time, delta) {
|
||||
this.el.object3D.position.z += this.data.speed * (delta / 1000);
|
||||
this.returnToPool();
|
||||
|
||||
Reference in New Issue
Block a user