Error with DisplayWinScreen

I am getting an error with the DisplayWinScreen(). Not sure what i am over looking.error
Code section as follows:

void CheckPassword(string input)
{
if (input == password)
{
DisplayWinScreen();
}
else
{
Terminal.WriteLine(“Wrong! Try Again or exit to quit.”);
}
}

void DisplayWinScreen()
{
    currentScreen = Screen.Win;
    Terminal.ClearScreen();
    ShowLevelReward();
}

SOLVED: Somehow a line was created near the top of my code, not really sure how it was created but once removed the error went away.

public object DisplayWinScreen { get; private set; }

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms