摘要:
public Transform target; public float moveSmooth=5f; Vector3 offset; void Start () { offset = transform.position - target.position;//获取相对位置 } void Upd 阅读全文
摘要:
public float speed = 6f; Vector3 movement; void FixedUpdate () { float h = Input.GetAxisRaw("Horizontal"); float v = Input.GetAxisRaw("Vertical"); Mov 阅读全文
摘要:
int floorMask; float camRayLenth = 100f;//摄像机射线距离 void Truning() { Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);//根据当前鼠标的位置,发射一条射线 Rayc 阅读全文