我不确定我是否正确理解您的问题。 如果要在禁用 GameObject 之前应用动画,则可以调用:
self.spine:Update(0)
self.spine:LateUpdate() // 您可以根据要实现的目标跳过此行。
请注意,上面的代码可能无法按原样编译,我不习惯在 unityscript 中编码🙂。
I'm not sure I understand your question correctly. If you want to apply the animation before disabling the GameObject, then you can call:
self.spine:Update(0)
self.spine:LateUpdate() // you can skip this line depending on what you want to achieve.
Please note that the above code might not compile as-is, I'm not used to coding in unityscript 🙂.