set whichhand to null on release

This commit is contained in:
James Pollack 2015-10-01 18:49:07 -07:00
parent 7f841b3828
commit 6131875f67

View file

@ -82,10 +82,15 @@
releaseGrab: function() {
var _t = this;
this.canShootTimeout = Script.setTimeout(function() {
_t.canShoot = false;
_t.whichHand=null;
}, 250)
if (this.whichHand === this.hand) {
_t.whichHand = null;
this.canShootTimeout = Script.setTimeout(function() {
_t.canShoot = false;
}, 250)
}
},
checkTriggerPressure: function(gunHand) {