C
C#7mo ago
ULTIMA

good puzzle for someone, dont know why or how this works

i have a code to restart and a button that should call the function when pressed but it doesnt work, assuming its the code but im unsure, doing debug.log testing right now
6 Replies
ULTIMA
ULTIMAOP7mo ago
public void RestartGame() { Time.timeScale = 1; SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); } so this is interesting, if anyone is good at puzzle solving, or wants a challenge, then here ya go. it works as intended, you press the button and it restarts game, problem is you have to click it about 10 times before it actually works. any ideas
SpReeD
SpReeD7mo ago
You should use breakpoints to debug, not any kind of logs like Console.WriteLine. We can only take guesses on the small bit of code, that's the actual riddle here.
SleepWellPupper
SleepWellPupper7mo ago
$help
MODiX
MODiX7mo ago
How to get the best help :catpog: Make a post in #help or one of the topic channels under Development. Avoid asking :catthinking: Can anybody help me? :catthinking: Has anyone used XYZ? :catthinking: Why doesn't my code work? C# is a big area! No one knows they can help unless you tell them about the small area you're trying to work in. Explain what you are doing, and potentially why for as much context as possible. Avoid screenshots where possible, share code directly in Discord. Type $code into chat to learn how to post code. See https://www.nohello.net and https://dontasktoask.com if you want common help chat room etiquette.
SleepWellPupper
SleepWellPupper7mo ago
$details
MODiX
MODiX7mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
Want results from more Discord servers?
Add your server