添加一个layer

let testLayer = new TestLayer1();
this.addChild(testLayer);

let TestLayer1 = cc.Layer.extend({
ctor:function(){
this._super();
},

onEnter: function () {
this._super();
},

});
posted @ 2019-11-22 14:29  流星曳尾  阅读(156)  评论(0编辑  收藏  举报