This commit is contained in:
oc committed 2018-02-06 14:14:23 +08:00
1 parent 96c6c1a353
commit 9b48c01c9b
1 file changed
+1
+1
View File
@@ -1988,6 +1988,7 @@ core.prototype.moveHero = function (direction, callback) {
if (!core.isset(callback)) { // 如果不存在回调函数,则使用heroMoveTrigger
core.status.heroStop = false;
if (core.interval.heroMoveTriggerInterval==null) {
core.moveAction();
core.interval.heroMoveTriggerInterval = setInterval(function () {
if (!core.status.heroStop) {
core.moveAction();