FlowLightEffect.ts 461 B

12345678910111213141516171819202122
  1. /**
  2. * 图片流光效果
  3. */
  4. const {ccclass, property} = cc._decorator;
  5. @ccclass
  6. export default class FlowLightEffect extends cc.Component {
  7. sprite: cc.Sprite = null;
  8. onLoad(){
  9. // this.sprite = this.node.getComponent(cc.Sprite)
  10. }
  11. private t1 = 0;
  12. update (dt) {
  13. // this.t1 += 0.01;
  14. // let _materi1 = this.sprite.getMaterial(0);
  15. // _materi1.setProperty("u_time", this.t1);
  16. }
  17. }