c# - error CS0246: The type or namespace name `CardBoard' could not be found. Are you missing a using directive or an assembly reference?

I have been trying make a c# script that can change the cardboard camera to other cardboard camera, like when a character choose a chair, he teleport to cardboard camera on this chair: Basically I just want switch cardboard camera for another cardboard camera.

Copiler Errors:

teste1.cs(39,41): error CS0246: The type or namespace name `CardBoard’ could not be found. Are you missing a using directive or an assembly reference?

This is c# script that I use:

using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;

public class teste1 : MonoBehaviour {
    
    public GameObject[] CamInicial = new GameObject[59]; // inicialização da camera
    public GameObject[] CamNext = new GameObject[59]; // camera para a qual se vai fazer switch
    int n; // id da camera

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        RaycastHit hit;
        if (Physics.Raycast(hit.transform.position, transform.forward, out hit))
        {
            if (CamNext[n] != null)
            {
                switchCameras(n);
            }
        }
    }
       

    private void switchCameras(int keyNum)
    {
        for (int i = 0; i < CamNext.Length + 1; i++)
        {
            if (CamNext *!= null && keyNum != i)*

{
// turn camera off
CamNext*.GetComponent().enabled = false;*
}
else {
// turn camera on
CamNext*.GetComponent().enabled = true;*
}
}
}
}
My question is: Why CardBoard could not be found?
Location of Cameras:
[68279-screenshot-1.png|68279]
[68280-screenshot-2.png*|68280]*
*
*
> I whant switch CardBoardMain to CardBoardAdapter, with a C# Script,
> what is that I failed in my script?

Probably the problem is that you don’t “Use” the namespace where the “CardBoard” is in.

Check out the Cardboard.cs file and look up in which namespace it is in. Then include this namespace inside your “teste1” script:

using <Cardboard namespace>;