From 135ad656ec0babf295de9fd75262cb59dd19a797 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sun, 6 Jan 2019 16:01:06 +0800 Subject: [PATCH] __renderFrameFuncs --- libs/core.js | 4 +++- project/functions.js | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/core.js b/libs/core.js index e05c0d6c..dc97aebf 100644 --- a/libs/core.js +++ b/libs/core.js @@ -361,7 +361,9 @@ core.prototype.init = function (coreData, callback) { core.events.initGame(); if (core.isset(functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a.plugins)) { - core.plugin = new function () {}; + core.plugin = new function () { + this.__renderFrameFuncs = []; + }; core.plugin.__init__ = functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a.plugins.plugin; core.plugin.__init__(); } diff --git a/project/functions.js b/project/functions.js index 5f2722e4..545fe239 100644 --- a/project/functions.js +++ b/project/functions.js @@ -1238,9 +1238,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = console.log("插件编写测试"); // 可以写一些其他的被直接执行的代码 - // 每帧会执行的函数列表 - this.__renderFrameFuncs = []; - // 在这里写所有需要自定义的函数 // 写法必须是 this.xxx = function (args) { ... // 如果不写this的话,函数将无法被外部所访问