Corrected bugs in tutorial

This commit is contained in:
Thomas FORGIONE
2015-06-25 14:59:22 +02:00
parent 5c42c6c63d
commit d00bea6229
2 changed files with 14 additions and 2 deletions

View File

@@ -95,6 +95,8 @@ var TutorialSteps = function(tutoCamera, scene, coins, onWindowResize, container
nextStep = function() {self.nextStep();};
this.scene = scene;
Coin.domElement.style.display = "none";
}
TutorialSteps.prototype.setCameras = function(cameras) {
@@ -102,6 +104,7 @@ TutorialSteps.prototype.setCameras = function(cameras) {
}
TutorialSteps.prototype.nextStep = function() {
console.log(this.step);
if (this.step < this.instructions.length) {
this.alert(this.instructions[this.step].text, this.instructions[this.step].justclick);
var callback = function() {self.coinNumber++; self.nextStep();};
@@ -111,6 +114,7 @@ TutorialSteps.prototype.nextStep = function() {
case 3: this.camera.allowed.mouseRotate = true; break;
case 4: this.camera.allowed.keyboardRotate = true; break;
case 5:
Coin.domElement.style.display = "";
Coin.max = 1;
Coin.update();
this.camera.allowed.keyboardRotate = true;