why does my script take two lives instead of one when i die
Hi,i made a script in a 2d game that when i fall off a block my player collides with a box collider then looses a life and respawns but intead of taking one life it takes two i dont understand why
Comment
Answer by CodeMonkeyYT · Apr 18 at 08:00 PM
Maybe you have two colliders so the collision function is being called twice? Add a Debug.Log(this);
to see how many times its being called and from where
Your answer
Follow this Question
Related Questions
Subtraction Error 0 Answers
Big numbers 2 Answers
Problem with a ship controller script 1 Answer
hey guys how do i find an specific object in the scene by script in run time 0 Answers
Flashlight flickering script? 0 Answers