As Outlaw noted above `public GUISkin GUI.skin;` wont play nice for you. the syntax for a C# variable decliration is
access specifor i.e. internal, private or public of which the defualt for objects declared outside a class i.e. classes, enums, etc. is internal while object declared within a class such as variables are private
next is the type i.e. String or in your case GUISkin
finaly is the name which may only contain letters and number as well as _ and must start with a letter or _
Valid options(MyVar, _MyVar _MyVar1)
Invalid options(1MyVar, My.Var)
As noted your variable decliration should be 'public GUISkin GuiSkin' or similar.
↧