How to access functions in another class in the same namespace?
Hey dudes. I come from a background of Pascal and Lua, so bear with me if this is an obvious question.
I've got a big class, and I want to move some of my functions into another one to keep things tidy. But it appears to not be as simple as just making another class in the same namespace, and calling the function from there. That throws the error:
An object reference is required for the non-static field, method, or property 'Util.CanMarry(Hero, Hero)'
An object reference is required for the non-static field, method, or property 'Util.CanMarry(Hero, Hero)'
So what's the approach to adding functions that are called by another class?
Pic 1: The new helper class with a function in it Pic 2: The big class that I want to use that helper function inside Pic 3: The error