Hi!
I get this error message when trying to compile my scripts:
Assets/MainMenu.cs(53,36): error CS0122: `SceneFadeIn.EndScene()’ is inaccessible due to its protection level
Some of my code in MainMenu.cs:
public SceneFadeIn sceneFader;
........
void DoMainMenu(int windowID)
{
if(GUILayout.Button("New Game"))
{
sceneFader.EndScene();
}
}
Nothing should be wrong with this code since I have done similiar tasks before… So, how do I change the “protection level” of a script??