| 123456789101112131415 |
- import { _decorator, Component, Node, sp } from 'cc';
- const { ccclass, property } = _decorator;
- @ccclass('spinRun')
- export class spinRun extends Component {
- @property(sp.Skeleton)
- xiaocheRun: sp.Skeleton = null
- onLoad(){
- this.xiaocheRun.setAnimation(0, 'pg_loop60f', true)
- }
-
- }
|