Namespace State is not found

When I use [SerializeField] State …; there’s an error message that says
“Namespace name State cannot be found”

Hi Ahron,

Without knowing anything about your project and without seeing your code, it’s a bit difficult for me to help you with your problem. Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture?

Thank you. I already solved the problem. I thought the State was a default command. Not a function that I defined before. I just needed to type in the function that I defined which was not State

Well done! :slight_smile:

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

Privacy & Terms