Main Menu Help

I have been working on a main menu for my game. I was watching this tutorial:

but whenever I clicked on “Start Game”, it would skip the beginning of my game. For example, instead of starting on “Day 1”, when you click the “Start Game” button, it would send you to “Day 2” and skip “Day 1.” I am hoping that there is a way to fix this.

i can’t say for sure, but try changing “Application.LoadLevel(1)” to “Application.LoadLevel(0)” depending on the order your scenes are represented in the build manager.

this video tutorial is out of date though, it is using the above mentioned code, however it is now taken care of by Scene Manager.

also just a nit pick at the tutorial, if the person making the tutorial has to copy and paste their own script and doesnt bother to explain anything inside of it on top of it then they probably shouldnt bother creating ‘tutorials’ and you are better off finding another.

this was literally in the side bar of the video you linked to and it is immediately better. you might consider checking it out instead.

@toddisarockstar so I should add AddComponent(“name of script”); to my Main Menu Script? Is that the only code I should add to my main menu script or is there more I should add?