mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Code review
This commit is contained in:
parent
4e57d53dde
commit
189f6f5440
2 changed files with 2 additions and 14 deletions
|
@ -94,13 +94,7 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
};
|
||||
|
||||
this.isReady = function (controllerData) {
|
||||
if (!handsAreTracked()) {
|
||||
return makeRunningValues(false, [], []);
|
||||
} else if (this.gestureCompleted) {
|
||||
return makeRunningValues(true, [], []);
|
||||
} else {
|
||||
return makeRunningValues(false, [], []);
|
||||
}
|
||||
return makeRunningValues(handsAreTracked() && this.gestureCompleted, [], []);
|
||||
};
|
||||
|
||||
this.run = function (controllerData) {
|
||||
|
|
|
@ -105,13 +105,7 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
};
|
||||
|
||||
this.isReady = function (controllerData) {
|
||||
if (!handsAreTracked()) {
|
||||
return makeRunningValues(false, [], []);
|
||||
} else if (this.walkingForward || this.walkingBackward) {
|
||||
return makeRunningValues(true, [], []);
|
||||
} else {
|
||||
return makeRunningValues(false, [], []);
|
||||
}
|
||||
return makeRunningValues(handsAreTracked() && (this.walkingForward || this.walkingBackward), [], []);
|
||||
};
|
||||
|
||||
this.run = function (controllerData) {
|
||||
|
|
Loading…
Reference in a new issue