- Home /
Boolean Troubles(C#)- Can anyone help?
I have looked at this for a while, and cannot pinpoint the issue. When I enable the movement locker bool using the Unity editor, the character cannot move(like its supposed to). But, when I try to disable or enable the variable through script (called NameChoose), nothing happens. I have no clue whats happening, but any help is appreciated.
//This is the script that won't do anything
Answer by SlowCircuit · Jun 18, 2018 at 01:42 AM
If you're getting any errors, it'll probably be related to those. If not, then it's possible Bye() is being called prematurely. Try putting a Debug.Log() inside Bye() so you can know when it's called.
Thanks for your reply. I added a debug statement and found the script wasn't being called at all. I looked my other scripts and through some painful trial and error, I fixed the issue. Thanks for your help.
Your answer
![](https://koobas.hobune.stream/wayback/20220612164940im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[Solved] Boolean is true and flase every frame 3 Answers
SpeedBoost not working,My speedBoostTaken variable isn't working, why? 1 Answer
Setting bool from other script for specific gameobjects (while they're using same movement script) 2 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers