1.循環播放動畫
// 物體放縮
var toBig = cc.scaleTo(0.8, 0.9);
var toSmall = cc.scaleTo(0.8, 0.7);
this.exGoldButton.runAction(cc.repeatForever(cc.sequence(toBig, toSmall)));
// 箭頭平移
this.YinDaoShouZhi.position = new cc.Vec2(-110, 140);
var action = cc.moveTo(1.1, cc.v2(180, 140));
var repeat = cc.sequence(action, cc.callFunc(() => {
this.YinDaoShouZhi.position = new cc.Vec2(-110, 140);
}))
this.YinDaoShouZhi.runAction(cc.repeatForever(repeat));