FIconBlink.ts 229 B

12345678910111213
  1. const {ccclass, property} = cc._decorator;
  2. /**
  3. * 头像闪烁
  4. */
  5. @ccclass
  6. export default class FIconBlink extends cc.Component {
  7. onLoad () {
  8. cc.tween(this.node).repeatForever(cc.blink(0.5,1)).start()
  9. }
  10. }