12345678910111213141516171819 |
- using SC.XR.Unity.Module_InputSystem;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class OneDevicePartCountManipulation : AbstractDevicePartCountManipulation
- {
- public override void Init(ManipulationHandler manipulationHandler, IDevicePartManipulation devicePartManipulation, Dictionary<InputDevicePartType, SCPointEventData> eventDataDic, Transform targetTransform, MoveLogic moveLogic, RotateLogic rotateLogic, ScaleLogic scaleLogic)
- {
- base.Init(manipulationHandler, devicePartManipulation, eventDataDic, targetTransform, moveLogic, rotateLogic, scaleLogic);
- this.devicePartManipulation.OneDevicePartInit(manipulationHandler, eventDataDic, targetTransform, moveLogic, rotateLogic, scaleLogic);
- }
- public override Tuple<Vector3, Quaternion, Vector3> Update(Func<Vector3,Vector3> scaleConstraint)
- {
- return devicePartManipulation.OneDevicePartUpdate();
- }
- }
|