for(var i = 0, m = retv.length; i < m; i++){
removeAnObjectFromArray(thatManager.userManager.ingredientList, retv[i]);
}
- this.cookSound.load();
- this.cookSound.play();
+ that.cookSound.load();
+ that.cookSound.play();
}
} else{
thatManager.addWidget(new MessageWidgetClass(thatManager, ["一つも材料が選択されていないので、パンを焼くことができません!\n"]));
},true, 0, true])
);
}
- } else{
+ } else if(this.bakingCount > 10){
//焼き終わり
this.isSelecting = true;
var s = null;
that.isBaking = false;
this.bakingCount = 0;
this.image = this.imgs[0];
+ that.cookSound.pause();
}
}
}
RandomIngredientItemClass.base.prototype.draw.apply(this, arguments);
},
itemCaputured: function(obj){
- if(obj instanceof MainCharacterClass){
+ if(this.image && obj instanceof MainCharacterClass){
var m = this.ownerStage.userControlledCharacter;
if(obj == m){
if(this.ownerStage.manager.userManager.addIngredientItem(getSelectWidgetItemFromIngredientID(this.ingredients[this.currentItemIndex][0]))){