Until now I scripted based to a game-object-centered point of view, but clearly there must be something more outside of it!
I read that I can decleare new classes and access them after having stored them for example in a DLL file, not that I'm in need of a DLL for the moment, I just need to understand how to write a class unlinked from the game objects.
My object oriented programming stops at PHP 5 and a couple of Java months of work, so I'm a bit confused about how to replicate the same effect on Unity.
Where should I put my new code files, if they are not attached to any actual object in game?
How should I decleare new classes in those files?
Where can I tell other script that they have to recognize those new files with those new classes?
(I feel dumb just asking but I'm really unable to figure it out easily... >_>)
EDIT: For example I actually need to make out a script that reads informations from a game object, but I'm tired to duplicate the same function in every script I make, just to let every object be able to use it...
That's good for "How to decleare it", thanks a lot! But now, where should I put those code lines? And am I sure that in any other script, if I call foobar.HelloWorld() it will work, without placing it anywhere?
– anon57580288ahh..included the details you want in my answers
– ExtrakunGood, thanks! :)
– anon57580288