- Home /
Question by
ExplodingEmber · Sep 06, 2014 at 02:49 AM ·
ontriggerenter2d
ontriggerenter2D doesn't work when application loaded more than once
If the player dies and restarts the level, ontriggerenter doesn't notice every collider that enters it.
Example, every time an enemy hits the base the base should loose health, which it does for the first load, but when the level is reloaded or if the player restarts due to death ontriggerenter only makes the base loose health some of the time.
It was working fine until the other day, then it just stopped working properly. This is for an android application.
(sorry if this question has already been asked I couldn't find anything)
Comment
Hi, I have the same problem, did you find a solution fot that?
Have you tried to enable both rigid body and collider on the player on a explicit way once the player respawns?