12345678910111213141516171819202122232425262728 |
- cc.Class({
- extends: cc.Component,
- properties: {
- bgFrames: [cc.SpriteFrame],
- },
- onLoad () {
-
- },
- init (quest) {
- this.quest = quest
- },
-
- show () {
- this.getComponent(cc.Button).interactable = false;
- this.getComponent('cc.Sprite').spriteFrame = this.bgFrames[1]
- },
- hide () {
- this.getComponent(cc.Button).interactable = true;
- this.getComponent('cc.Sprite').spriteFrame = this.bgFrames[0]
- }
- // update (dt) {},
- });
|