我有一个问题,当我写这个播放声音时,播放器距离4单位米的距离并按下“e”,但它给了我一个错误,hit无法转换为float 。我现在应该怎么做? public AudioSource sound;
public int rayLength = 4;
public GameObject doorText;
RaycastHit hit;
void Update()
{
var
我有一个摄像头,它将userInterface(画布)对象显示在我的相机前面。 我只更新我的用户界面位置,如果相机光线不击中我的userInterface对象对撞机。像这样 public class UIPlacerAtCamFront : MonoBehaviour {
public GameObject userInterface;
public float placem