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