12345678910111213141516171819202122232425262728293031323334353637383940 |
- var t = require;
- var e = module;
- var i = exports;
- var s =
- (this && this.__decorate) ||
- function(t, e, i, s) {
- var o,
- a = arguments.length,
- n = a < 3 ? e : null === s ? (s = Object.getOwnPropertyDescriptor(e, i)) : s;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, i, s);
- else
- for (var r = t.length - 1; 0 <= r; r--)
- (o = t[r]) && (n = (a < 3 ? o(n) : 3 < a ? o(e, i, n) : o(e, i)) || n);
- return 3 < a && n && Object.defineProperty(e, i, n), n;
- };
- Object.defineProperty(i, "__esModule", { value: !0 }), (i.RedPoinAnim = void 0);
- const { ccclass: o, menu: a } = cc._decorator;
- (e = class extends cc.Component {
- onEnable() {
- this.playAni();
- }
- onDisable() {
- this.node.stopAllActions();
- }
- playAni() {
- this.node.stopAllActions();
- var t = cc.tween(this.node).to(0.3, { angle: 20 }).to(0.3, { angle: -20 }),
- t = cc
- .tween(this.node)
- .to(0.2, { scale: 1.1 })
- .repeat(5, t)
- .to(0, { angle: 0 })
- .to(0.2, { scale: 1.2 })
- .to(0.2, { scale: 1 })
- .delay(3);
- cc.tween(this.node).repeatForever(t).start();
- }
- }),
- (e = s([o], e));
- i.RedPoinAnim = e;
|