TwoDevicePartCountManipulation.cs 978 B

12345678910111213141516171819
  1. using SC.XR.Unity.Module_InputSystem;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. public class TwoDevicePartCountManipulation : AbstractDevicePartCountManipulation
  7. {
  8. public override void Init(ManipulationHandler manipulationHandler, IDevicePartManipulation devicePartManipulation, Dictionary<InputDevicePartType, SCPointEventData> eventDataDic, Transform targetTransform, MoveLogic moveLogic, RotateLogic rotateLogic, ScaleLogic scaleLogic)
  9. {
  10. base.Init(manipulationHandler, devicePartManipulation, eventDataDic, targetTransform, moveLogic, rotateLogic, scaleLogic);
  11. this.devicePartManipulation.TwoDevicePartInit(manipulationHandler, eventDataDic, targetTransform, moveLogic, rotateLogic, scaleLogic);
  12. }
  13. public override Tuple<Vector3, Quaternion, Vector3> Update(Func<Vector3, Vector3> scaleConstraint)
  14. {
  15. return devicePartManipulation.TwoDevicePartUpdate(scaleConstraint);
  16. }
  17. }