技能改spine 怪物增加
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { _decorator, Component, Node } from 'cc';
|
||||
import { _decorator, Component, Node, sp } from 'cc';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('UiHeroComp')
|
||||
export class UiHeroComp extends Component {
|
||||
h_uuid:number=0
|
||||
start() {
|
||||
|
||||
var spine = this.node.getChildByName("anm").getComponent('sp.Skeleton') as sp.Skeleton;
|
||||
spine.setAnimation(0, 'Idle', true);
|
||||
}
|
||||
to_destroy(){
|
||||
this.node.destroy()
|
||||
|
||||
Reference in New Issue
Block a user