public void _AsyncAnimation(int animTrack, AnimationReferenceAsset animClip, bool loop, float timeScale, float mixDuration)
{
if(animClip.name.Equals(CurrentAnimation[animTrack])) {
return;
}
var setAnim = skeletonAnimation.state.SetAnimation(animTrack, animClip, loop);
setAnim.TimeScale = timeScale;
setAnim.MixDuration = mixDuration;
CurrentAnimation[animTrack] = animClip.name;
}
I was using this _AsyncAnimation code really well, but suddenly it was broken. I think that while I was using Visual Studio, something automatically changed, and this error happens:

I don't understand why this error is happening, because I was using this script bug-free for about 2 months.