❔ My Level Number keep returning as 0 (Unity)
Hello, I'm new at both Unity and coding. Here is my issue,
Debug.Log(levelNu);
keep returning as 0
even while I am at Scene 2, 3, 4. How can I fix this?
3 Replies
You might be creating more than one of whatever class that is.
Whats nextSceneIndex = + +currentSceneIndex
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.