出现错误:
error CS0165: Use of unassigned local variable `hit'
error CS0103: The name `point' does not exist in the current context(可是我那几行没有出现过 point ……)
可是我那几行没有出现过 point ……
那两行的代码:
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;(提示出错的那一行)
hit 不是 RaycastHit 结构体的对象吗?