技能改spine 怪物增加
This commit is contained in:
16
assets/script/game/hero/idleComp.ts
Normal file
16
assets/script/game/hero/idleComp.ts
Normal 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) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user