mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 22:22:54 +02: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) {
|
this.isReady = function (controllerData) {
|
||||||
if (!handsAreTracked()) {
|
return makeRunningValues(handsAreTracked() && this.gestureCompleted, [], []);
|
||||||
return makeRunningValues(false, [], []);
|
|
||||||
} else if (this.gestureCompleted) {
|
|
||||||
return makeRunningValues(true, [], []);
|
|
||||||
} else {
|
|
||||||
return makeRunningValues(false, [], []);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.run = function (controllerData) {
|
this.run = function (controllerData) {
|
||||||
|
|
|
@ -105,13 +105,7 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
};
|
};
|
||||||
|
|
||||||
this.isReady = function (controllerData) {
|
this.isReady = function (controllerData) {
|
||||||
if (!handsAreTracked()) {
|
return makeRunningValues(handsAreTracked() && (this.walkingForward || this.walkingBackward), [], []);
|
||||||
return makeRunningValues(false, [], []);
|
|
||||||
} else if (this.walkingForward || this.walkingBackward) {
|
|
||||||
return makeRunningValues(true, [], []);
|
|
||||||
} else {
|
|
||||||
return makeRunningValues(false, [], []);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.run = function (controllerData) {
|
this.run = function (controllerData) {
|
||||||
|
|
Loading…
Reference in a new issue