Animation not working when I build
So I have 2 animators, one for the player and one for the board. In unity everything works great but when I build animator on the board doesn't work. I have tried debugging and every line of code gets called, the same coroutine calls animation for the player and that animation works fine. I have no idea what is going on here. I also don't get any error messages. Someone please help. I have attached images from the build and from unity.
//this is the coroutine that activates both jump on player and board private IEnumerator Jump() { int randomN = Random.Range(1, 3); GetComponent<CapsuleCollider>().center = new Vector3(0, 6, 0); //set animation bool to true animating = true; //choose jump animation playerAnimator.SetInteger("jump", randomN); boardAnimator.SetInteger("jumpBoard", randomN); yield return new WaitForSeconds(0.1f); //reset animator int playerAnimator.SetInteger("jump", 0); boardAnimator.SetInteger("jumpBoard", 0); //animation finnished yield return new WaitForSeconds(jumpColliderOffsetTimer); GetComponent<CapsuleCollider>().center = new Vector3(0, 1.394564f, 0); yield return null; }