let anim = this.shieldNode.getComponentInChildren(SkeletalAnimation);
anim.once(__private.cocos_core_animation_animation_state_EventType.FINISHED, () => {
this.shieldNode.active = false;
})
__private只有定义没有值,断点看了下还是undefined,监听事件直接改成"finished"可以正常工作但是编辑器会报错,不属于cocos_core_animation_animation_state_EventType这个枚举类型= =,有什么解决办法吗?
