|
here is the colorpicker code i am using, and use GameSettings2.SaveColor( col ); and this is what i am trying to do to save and load from gamesettings script, and my error, currently anyways, is Assets/_Scripts/_Items/GameSettings2.cs(87,37): error CS0161: `GameSettings2.SaveColor(string)': not all code paths return a value so what am i doing wrong? cause i am failing to truly understand what i am really doing lool i cant seem to get it to work, though choosing the color etc, works fine, i might not have fully translated java to c#? any help or straight forward fix would be grand, thank you!!
(comments are locked)
|
Your code expets SaveColor to return a string, but you aren't returning anything there. Either remove String from the signature or return a string. how do i return a string, it seems the color picker is a string, unless i am wrong ive tried floats and ints and they give me the same error, and right now i have error like this Assets/_Scripts/_Items/GameSettings2.cs(88,50): error CS0119: Expression denotes a and this is what i tried
May 29 '12 at 05:41 PM
EntropicJoey
(comments are locked)
|
|
You can't save a Color as a string; they are different types. Use ArrayPrefs2, then you can just do PlayerPrefsX.SetColor/GetColor and save yourself a lot of bother. thank you both kindly
May 29 '12 at 05:07 PM
EntropicJoey
(comments are locked)
|
