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的话,函数将无法被外部所访问