OK, don’t be one of those dutchbags and say ‘I went to google and found…’ I did and found an endless loop of errors but none that helped me. I know what the issue is, but can’t code it right. this should be pretty simple for you to answer.
On script #1 (UpdateStats) I have a variable “public string sceneStudyMode;”. In the inspector I type in a name.
On script #2 (PlayerPrefsSTudy), I want to access it. I tried “UpdateStats.sceneStudyMode” and I get the error.
////////////////////////////
/// Study Mode
if (PlayerPrefs.HasKey (UpdateStats.ppText + UpdateStats.sceneStudyMode + UpdateStats.victoriousText))
{
studyModeVictory = PlayerPrefs.GetFloat (UpdateStats.ppText + UpdateStats.sceneStudyMode + UpdateStats.victoriousText); //Load
}
else
{
studyModeVictory = 0;
}
//////////////////////////
I think that it has something to do with referencing. I know what needs t be done. The variable is not in a method.
Thanks for the help and not disrespecting me.