mirror of
https://github.com/Leo501/CocosCreatorTutorial.git
synced 2026-05-13 01:26:58 +08:00
22 lines
245 B
JavaScript
22 lines
245 B
JavaScript
cc.Class({
|
|
extends: cc.Component,
|
|
|
|
properties: {
|
|
labelName: cc.Label
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
},
|
|
|
|
init(name) {
|
|
|
|
this.labelName.string = name;
|
|
}
|
|
|
|
// start () {
|
|
|
|
// },
|
|
|
|
// update (dt) {},
|
|
}); |