【发布时间】:2020-05-11 03:06:20
【问题描述】:
在给定的类下面,我想在提供的类下面创建一个新类,但它给出了错误。
public class apicall : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
public class responseData
{
public string status { get; set; }
public dataClass data { get; set; }
}
错误:
Assets/apicall.cs(39,10): error CS0246: The type or namespace name 'dataClass' could not be found (are you missing a using directive or an assembly reference?)
【问题讨论】:
-
我在这段代码的任何地方都看不到dataClass