/// <summary>
 /// 抓取设置
 /// </summary>
 /// <param name="operate">Operate.</param>
 /// <param name="handIndex">Hand index.</param>
 public void OnGrabObject(IOperateObject operate, int handIndex)
 {
     if (HandIndex != handIndex)
     {
         return;
     }
     Offset        = MUtility.GetOffsetPosition(Operate.InputHand.ScreenPoint, operate.GrabObject);
     OperateObject = operate;
 }
Esempio n. 2
0
        /// <summary>
        /// 移动设置
        /// </summary>
        /// <param name="operate"></param>
        /// <param name="handIndex"></param>
        void OnGrabObject(IOperateObject operate, int handIndex)
        {
            if (handIndex != InputHands[0].HandIndex)
            {
                return;
            }

            offset = MUtility.GetOffsetPosition(InputHands[0].ScreenPoint, operate.GrabObject);

            this.operateObject = operate;
        }