Please Help.. Error CS0246

help

Hi, welcome to the community :slight_smile:

It’s better to copy/paste your code into the forum rather than putting screenshots in, it tends to have greater readability, especially on mobile devices. It also enables those that offer to help you the ability to copy/paste parts of your code back to you with corrections/suggestions. Please also apply code formatting characters before and after the code (see below).

Regarding the error, your class AdventureGame doesn’t know what the type State is, e.g. the class. Have you created this yet?


See also;

Privacy & Terms