- Home /
Publish Error
When I play my game in the Unity editor, I collide with enemies and lose health.
However...
When I publish my game, I no longer lose health when colliding with enemies. It's happening on all platforms. Any thoughts? I'm stumped.
Answer by Velketor · Jul 15, 2012 at 11:46 PM
i figured it out. for some reason it only works if i have it pass through 3 colliders instead of 1. thank you for all of your help. i guess more colliders offers more chances for it to actually give me points.
Answer by ScroodgeM · Jul 15, 2012 at 09:49 PM
"lose health" event follows by lots of other internal events. such as some move, some checks, some collisions, some checks again and subtracting health - it's a simple model. so first of all insert debug information to every stage of this events chain, publish game again and check debug log for broken stage. after you got this info it is will be much more easy to find answer for your question.
thank you for the reply. however, the script is working perfect in Unity and then when I publish it no longer functions so I don't think my code is wrong. Something is happening during publish. $$anonymous$$an this sucks!
if something happening during publish you got an error or warning about it in editor. if nothing happening - then you must debug internal work of your components already in publish. don't panic, it can be a little setting that broke your script. just debug all chain - from script test for work to health subtracting.
i will do my best and see if I can figure it out. i'm obviously missing something. back to debugging! thank you for the help
Your answer
Follow this Question
Related Questions
Rotating Platform Collision Issue 1 Answer
[IL2CPP][UWP] Strange Error: "IOException: Win32 IO returned 234" 5 Answers
Collision on the bottom? 1 Answer
Moving Platform issue 1 Answer
Mesh Collider + Character Collider + moving Platforms 0 Answers