Sorry if this example is kinda vague, I’m not the best with these ask board sites.
So say I have an empty game object called “GameManager” with a script also named “GameManager”, and just to make things simple, another game object named “Player”, with a script called “PlayerData”. But both the scripts “GameManager” and “PlayerData” require using a method called “Gen()” in a class called “tools”.
Where and how would I declare the class “tools”, do I have to attach it to a game object or can it just be in an assets folder? And how would I even call the method?
What the methods do or other classes need is irrelevant, I just need to know how to set the class up and access it.