12345678910111213141516171819202122232425262728293031 |
- cc.Class({
- extends: cc.Component,
- properties: {
- interactionLabel: cc.Label,
- backgroundSprite: cc.Sprite,
- },
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {},
- start() {
- },
- init(interaction) {
- this.interaction = interaction;
- },
- configData(model) {
- this.interactionLabel.string = model.content;
- },
- // update (dt) {},
- selectItem() {
- this.interaction.selectInteraction();
- }
- });
|