Nice spot @Wadricks with the duplicate class name. ![]()
Arent the Scene names also classed as a string, so wouldn’t you always use quotation marks within the brackets as in (“1”)
The SceneManager’s LoadScene method actually has an overloaded method which also allows an int value to be passed in, by doing so you can load methods via their buildIndex value as an alternative to by name.
@Hagyto - note you can just paste your code into your posts on our forum and then format it using the ` characters before and after the block of code (see link below). Screenshots are very useful however for displaying settings/issues in the Unity editor.
See also;
- Unity - Scripting API : SceneManager.LoadScene
- Forum User Guides : How to apply code formatting within your post