Update bat.js to ensure pitching machine is running in continueNearGrab

This commit is contained in:
Ryan Huffman 2015-11-04 12:10:19 -08:00
parent cb2a698488
commit d0d3aaa09c

View file

@ -11,6 +11,11 @@
MyAvatar.shouldRenderLocally = false;
};
this.continueNearGrab = function() {
if (!pitchingMachine) {
pitchingMachine = getPitchingMachine();
Script.update.connect(function(dt) { pitchingMachine.update(dt); });
}
pitchingMachine.start();
MyAvatar.shouldRenderLocally = false;
}
this.releaseGrab = function() {