__renderFrameFuncs

This commit is contained in:
ckcz123 2019-01-06 16:01:06 +08:00
parent a3f66409ae
commit 135ad656ec
2 changed files with 3 additions and 4 deletions

View File

@ -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__();
}

View File

@ -1238,9 +1238,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
console.log("插件编写测试");
// 可以写一些其他的被直接执行的代码
// 每帧会执行的函数列表
this.__renderFrameFuncs = [];
// 在这里写所有需要自定义的函数
// 写法必须是 this.xxx = function (args) { ...
// 如果不写this的话函数将无法被外部所访问