版本为 最新2.0 beta 版 2.0.5-rc.2
NewProject_1.zip (770.8 KB)
希望各位大神帮忙看下,主要测试代码是这样的
var anim = this.getComponent(cc.Animation);
setTimeout(()=>{
anim.play(anim.getClips()[0].name);
}, 300)
setTimeout(()=>{
anim.play(anim.getClips()[0].name);
}, 300)
setTimeout(()=>{
anim.play(anim.getClips()[0].name);
}, 300)
setTimeout(()=>{
anim.stop()
anim.play(anim.getClips()[1].name);
}, 0)
希望的状态是,播放第二个clip的时候,停止 clip1 的播放,正常 播放 clip2,但是实际情况是 clip1 还是继续播放,这个是因为 animation stop 没有作用吗?
那如何实现预期的效果呢?

