mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 09:37:14 +02:00
Fix fuse getting lit 2+ times in tutorial
This commit is contained in:
parent
23e2447c60
commit
2bf13b9cf6
1 changed files with 2 additions and 2 deletions
|
@ -710,8 +710,8 @@ stepEquip.prototype = {
|
||||||
|
|
||||||
if (channel == "Tutorial-Spinner") {
|
if (channel == "Tutorial-Spinner") {
|
||||||
if (this.currentPart == this.PART1 && message == "wasLit") {
|
if (this.currentPart == this.PART1 && message == "wasLit") {
|
||||||
|
this.currentPart = this.PART2;
|
||||||
Script.setTimeout(function() {
|
Script.setTimeout(function() {
|
||||||
this.currentPart = this.PART2;
|
|
||||||
hideEntitiesWithTag(this.tagPart1);
|
hideEntitiesWithTag(this.tagPart1);
|
||||||
showEntitiesWithTag(this.tagPart2);
|
showEntitiesWithTag(this.tagPart2);
|
||||||
setControllerPartLayer('tips', 'grip');
|
setControllerPartLayer('tips', 'grip');
|
||||||
|
@ -724,9 +724,9 @@ stepEquip.prototype = {
|
||||||
if (data.action == 'release' && data.grabbedEntity == this.gunID) {
|
if (data.action == 'release' && data.grabbedEntity == this.gunID) {
|
||||||
print("got release");
|
print("got release");
|
||||||
this.stopWatchingGun();
|
this.stopWatchingGun();
|
||||||
|
this.currentPart = this.COMPLETE;
|
||||||
playSuccessSound();
|
playSuccessSound();
|
||||||
Script.setTimeout(this.onFinish.bind(this), 1500);
|
Script.setTimeout(this.onFinish.bind(this), 1500);
|
||||||
this.currentPart = this.COMPLETE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue