Error CS0246 in GameManager (Roguelike 2D tutorial)

Hi,

I’m doing the Roguelike 2D game, and and my GameManager script is now supposed to look as it does here at 1:18 in the tutorial:

My own code looks like this:

But I’m getting error CS0246: The type or namespace name “BoardManager” could not be found. Are you missing a using directive or an assembly reference?

I’ve gone through the previous parts of the tutorial and have a C# BoardManager script that doesn’t contain errors. (There was a problem with it that I couldn’t figure out how to fix, so I ended up copying the code given by the tutorial to move on.)

I’ve seen “Add the class BoardManager to the current/same GameObject that GameManager is attached to” as advice to someone else but I had done that. In an attempt to start over, I deleted the GameObject and tried to create a new one and add GameManager&BoardManager to it, but I can’t do that because I get “Can’t add script: please fix compile errors before creating new script components”.

Thanks.

Error is describing a problem with BoardManager, but you didn’t show any code in BoardManager.cs

I took a very quick peek at the tutorial, and I’m guessing that your BoardManager is exactly the same as the BoardManager found here

BoardManager is wrapped in a namespace. I’m not familiar with the tutorial so I have no idea how it will handle this. But it should be as simple as adding using Completed; into GameManager.cs