can't exit a recursive fonction
working on a simple unity game and I can't exit this recursive fonction: https://pastebin.com/suNkXfab
Pastebin
private int Place; private string[] Arrow = {"↑", "←", "→"}; ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
Yup
well you are calling makeboard() inside makeboard() without any condition so of course it keeps going
You need an if or while to call makeboard() in and when the condition is finally over it wont get called anymore
alright thanks!