spinRun.ts 309 B

123456789101112131415
  1. import { _decorator, Component, Node, sp } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('spinRun')
  4. export class spinRun extends Component {
  5. @property(sp.Skeleton)
  6. xiaocheRun: sp.Skeleton = null
  7. onLoad(){
  8. this.xiaocheRun.setAnimation(0, 'pg_loop60f', true)
  9. }
  10. }