It looks you are referencing
ModMenuScript.ShowHide
in your program
main
function. Since
main
is
static it cannot access the
non-static ShowHide
property: you need an instance (an object) of the
ModMenuScrip
class in order to access it. Something like
static void main()
{
ModMenuScript mms = new ModMenuScript();
mms.ShowHide = true;
}