level 2
慕里卡卡
楼主
void Start()
{
LockCursor = true;
parameter = this.GetComponent<fps_PlayerParameter>();
input = GameObject.FindGameObjectsWithTag(Tags.gameController).GetComponent<fps_Input>();
}
错误CS1061“GameObject”未包含“GetComponent”的定义,并且找不到可接受第一个“GameObject类型参数的扩展方法“GetComponent”(是否缺少 using 指令或程序集引用?
这个错误怎么改啊,跟着教程做的人家的没报错,我的报了,不懂为什么,求怎么改,谢谢
2021年02月14日 17点02分
1
{
LockCursor = true;
parameter = this.GetComponent<fps_PlayerParameter>();
input = GameObject.FindGameObjectsWithTag(Tags.gameController).GetComponent<fps_Input>();
}
错误CS1061“GameObject”未包含“GetComponent”的定义,并且找不到可接受第一个“GameObject类型参数的扩展方法“GetComponent”(是否缺少 using 指令或程序集引用?
这个错误怎么改啊,跟着教程做的人家的没报错,我的报了,不懂为什么,求怎么改,谢谢