技能改spine 怪物增加

This commit is contained in:
2025-01-12 23:58:35 +08:00
parent 8d0c6e24be
commit 09f6b140bb
305 changed files with 63972 additions and 21951 deletions

View File

@@ -0,0 +1,16 @@
import { _decorator, Component, Node, sp } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('idleComp')
export class idleComp extends Component {
start() {
var spine = this.node.getChildByName("anm").getComponent('sp.Skeleton') as sp.Skeleton;
spine.setAnimation(0, 'Idle', true);
}
update(deltaTime: number) {
}
}