Loading.ts 397 B

1234567891011121314151617
  1. const {ccclass, property} = cc._decorator;
  2. @ccclass
  3. export default class Loading extends cc.Component {
  4. @property(cc.Node)
  5. rotateNode: cc.Node = null;
  6. onLoad(){
  7. }
  8. onEnable(){
  9. cc.tween(this.rotateNode).repeatForever(cc.rotateBy(0.3,60)).start();
  10. // let rotateBy = cc.rotateBy(0.3,60);
  11. // this.rotateNode.runAction(cc.repeatForever(rotateBy))
  12. }
  13. }