Collisions only working in the editor but not in the build
I have been working on a game, and I need the player to turn people it throws chicken fingers at into a huge piece of chicken when he gets hit by a chicken finger. While I play it in the editor it works fine and does what it is suppost to do, in the final builds the collisions are not detecting and the people are not turning into pieces of chicken.
Here is my code: void OnCollisionEnter(Collision other) { if(other.gameObject.tag == fingerTag) { Instantiate(hugeChickenWingPrefab, transform.position, hugeChickenWingPrefab.transform.rotation); Destroy(gameObject); } }
Also, here are the variables: public string fingerTag = "Finger"; public GameObject hugeChickenWingPrefab;
I have no idea why it is not working, can someone please tell me how to fix it?