| 12345678910111213141516171819202122232425 |
- const {ccclass, property} = cc._decorator;
- /**
- * 提示手指缩放效果
- */
- @ccclass
- export default class BtnScale extends cc.Component {
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {}
- @property
- maxScale:number = 1.2
- @property
- minScale:number = 1
- @property
- time:number = 0.5
- start () {
- this.node.runAction(cc.repeatForever(cc.sequence(cc.scaleTo(this.time,this.maxScale),cc.scaleTo(this.time,this.minScale))))
- }
- // update (dt) {}
- }
|