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