if (this.BodyAnim) {
if (step === 1) {
this.BodyAnim.play('oneStep');
} else if (step === 2) {
this.BodyAnim.play('twoStep');
}
} else console.error('BodyAnim is null!');
everytime I receive in console "BodyAnim is null!"
In first versions works fine, but after cocos creator 3.1.x its broken.
Can you help me?
Now I'm using 3.7.2
I'm stuck in adding character animations
everytime I receive in console "BodyAnim is null!" In first versions works fine, but after cocos creator 3.1.x its broken. Can you help me? Now I'm using 3.7.2