我这边有个游戏,使用了cc.Animation的play(‘xxx’)、stop()、setCurrentTime(0,‘xxx’)等方法,在Web测试没有问题,但是在微信小游戏上都出现了同一个bug提示:this.anim.play is not a function、this.anim.stop is not a function,setCurrentTime同理。我做了检测,this.anim不为空,但是它的方法就是报错了。
请问是什么原因导致的?我该进行怎样的修改?
- Creator 版本:2.1.2