|
@@ -39,7 +39,7 @@ public class MouseDrag : MonoBehaviour
|
|
|
{
|
|
|
if (maid == null)
|
|
|
return;
|
|
|
- IKCtrlData ikData = maid.body0.IKCtrl.GetIKData("左手", false);
|
|
|
+ IKCtrlData ikData = maid.body0.IKCtrl.GetIKData("左手");
|
|
|
worldPoint = Camera.main.WorldToScreenPoint(transform.position);
|
|
|
off = transform.position - Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, worldPoint.z));
|
|
|
off2 = new Vector3(obj.transform.position.x - HandL.position.x,
|
|
@@ -131,7 +131,7 @@ public class MouseDrag : MonoBehaviour
|
|
|
{
|
|
|
Vector3 tgt = Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, worldPoint.z)) + off
|
|
|
- off2;
|
|
|
- IKCtrlData ikData = maid.body0.IKCtrl.GetIKData("左手", false);
|
|
|
+ IKCtrlData ikData = maid.body0.IKCtrl.GetIKData("左手");
|
|
|
isMouseDrag = true;
|
|
|
if (!isPlay)
|
|
|
isStop = true;
|