I’m following the tutorial step by step, but ran into this error. Existing answers didn’t seem to apply to my case.
Assets/Scripts/GameManager.cs(7,16): error CS0246: The type or namespace name `BoardManager’ could not be found. Are you missing a using directive or an assembly reference?
My script looks just like the one in the tutorial vid:
using UnityEngine;
using System.Collections;
public class GameManager : MonoBehaviour
{
public BoardManager boardScript;
private int level = 3;
void Awake ()
{
boardScript = GetComponent<BoardManager>();
InitGame ();
}
void InitGame()
{
boardScript.SetupScene(level);
}
}
I don’t have much c# experience so this may be a beginner’s mistake, but as I said the code looks just like the one in the tutorial as far as I can tell. Thanks in advance for any help!