- Get function handler
this._call_fn = cr.plugins_.Function.prototype.acts.CallFunction;[/code:2vuqn2xh]
- Get "this"
[code:2vuqn2xh]this._official_fnobj = plugin.instances[0];[/code:2vuqn2xh]
- Call "on function"
[code:2vuqn2xh]this._call_fn.call(this._official_fnobj, name, params);[/code:2vuqn2xh]
Hi, I've got a problem with the second instruction:
this._official_fnobj = plugin.instances[0];[/code:2vuqn2xh]
I'm trying to do this inside of instanceProto.tick, and it reasonably says "plugin is not defined". How do I do this in my case?