From 4c032e5ae28ca14c833cacc332cffa69a2b66dcd Mon Sep 17 00:00:00 2001 From: oc Date: Wed, 9 May 2018 00:13:57 +0800 Subject: [PATCH] Editor mode: do not initGame --- libs/core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/core.js b/libs/core.js index 79aef3b0..525d3685 100644 --- a/libs/core.js +++ b/libs/core.js @@ -265,7 +265,8 @@ core.prototype.init = function (coreData, callback) { core.setRequestAnimationFrame(); core.showStartAnimate(); - core.events.initGame(); + if (main.mode=='play') + core.events.initGame(); if (core.isset(functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a.plugins)) core.plugin = new functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a.plugins.plugin();