10 lines
261 B
JavaScript
Raw Normal View History

2022-06-25 00:23:03 +08:00
(function(){
if(!cc.Sprite.__assembler__.Simple3D) return;
let proto = cc.Sprite.__assembler__.Simple3D.prototype;
let nativeProto = renderer.SimpleSprite3D.prototype;
Object.assign(proto, {
_extendNative: nativeProto.ctor
})
})()