Unity2D看向鼠標方向

 Quaternion turntodirection(Vector3 targetpt, Vector3 originalPt)     {         float y = targetpt.y - originalPt.y;         float h = targetpt.x - originalPt.x;         float aa = Mathf.Atan2(y, h) *
相關文章
相關標籤/搜索