mirror of
https://github.com/Leo501/CocosCreatorTutorial.git
synced 2026-05-08 14:48:40 +08:00
19 lines
306 B
JavaScript
19 lines
306 B
JavaScript
cc.Class({
|
|
extends: cc.Component,
|
|
|
|
properties: {
|
|
|
|
listViewNode: cc.Node
|
|
},
|
|
|
|
start() {
|
|
let script = this.listViewNode.getComponent('ListViewFactory');
|
|
script.init([1, 2, 3, 4, 5, 6, 7, 8, 9]);
|
|
},
|
|
|
|
// called every frame
|
|
update: function (dt) {
|
|
|
|
},
|
|
});
|