<script>
keys = {};
function isKeyPressed(kc){
if(typeof(kc) == "undefined"){
return false
}
return keys[kc] === true
}
if(typeof(handleWkd) == "undefined"){
handleWkd = true
jQuery(window).on("keydown",function(ev) {
keys[ev.keyCode] = true;
});
jQuery(window).on("keyup",function(ev) {
keys[ev.keyCode] = false;
});
}
AlwaysMulti = false
pauseSence = false
updateMainMultiply_Multiply = 1
updateMainMultiply_MultiplyActiveKey = 17
function SceneHook(){
if(typeof updateMainMultiply_Multiply === "undefined"){updateMainMultiply_Multiply = 1;}
if(typeof AlwaysMulti === "undefined"){AlwaysMulti = false;}
if(typeof pauseSence === "undefined"){pauseSence = false;}
if(typeof SceneManager === "undefined"){return;}
if(typeof SceneManager._scene === "undefined"){return;}
if(typeof SceneManager._scene.update === "undefined"){return;}
if(typeof SceneManager._scene.updateBk === "undefined"){
SceneManager._scene.updateBk = SceneManager._scene.update
}
SceneManager._scene.update = function(){
if(pauseSence){return;}
if(isKeyPressed(updateMainMultiply_MultiplyActiveKey) || AlwaysMulti){
for(var i=0;i<updateMainMultiply_Multiply;i++){
this.updateBk.apply(this,arguments);
}
}
return this.updateBk.apply(this,arguments);
}
if(typeof SceneManager._scene._windowLayer === "undefined"){return;}
if(typeof SceneManager._scene._windowLayer.children === "undefined"){return;}
if(typeof SceneManager._scene._windowLayer.children.length === "undefined"){return;}
for(var i=0;i<SceneManager._scene._windowLayer.children.length;i++){
if(
SceneManager._scene._windowLayer.children[i]
&& typeof SceneManager._scene._windowLayer.children[i].update !== "undefined"
&& typeof SceneManager._scene._windowLayer.children[i].updateBk === "undefined"
){
SceneManager._scene._windowLayer.children[i].updateBk = SceneManager._scene._windowLayer.children[i].update
}
SceneManager._scene._windowLayer.children[i].update = function(){
if(pauseSence){return;}
if(isKeyPressed(updateMainMultiply_MultiplyActiveKey) || AlwaysMulti){
for(var i=0;i<updateMainMultiply_Multiply;i++){
this.updateBk.apply(this,arguments);
}
}
return this.updateBk.apply(this,arguments);
}
}
}
if(typeof SceneHookInv !== "undefined"){
clearInterval(SceneHookInv);
}
SceneHookInv = setInterval(SceneHook,100);</script>