The code can be anywhere in the scene. You can access the whole script when you make it public. But you need to adjust the code. You can´t use it like it is.
Hello guys, I have created a 2D game, regardless I'm not a developer, but I have followed a tutorial and so far i'm doing pretty well. My game is almost done let's say, even inside the tutorial the language was C# and again i'm learning the basic things when it comes to coding. However, what concerns me right now is how to…
If you don´t want to struggle with reading and writing xml files you could store it in the player preferences. But there you can only store one key and value. But you can serialize values "manually" to a string and store multiple values (strings, ints) in one value. I did this recently to store multiple string values as a…
hm there are quite a few topics involved here.. serializing & storing the data - that is actually pretty easy with the .net xml stuff, but you'll need to read quite a few docs for this. In the end you want to define a simple data structure which contains your leaderboard entry and throw that into a list/array. pseudo c#:…