InputDeviceGGT26DofPartUI.cs 768 B

1234567891011121314151617181920212223242526
  1. using SC.XR.Unity.Module_Device;
  2. using System.Collections;
  3. using UnityEngine;
  4. namespace SC.XR.Unity.Module_InputSystem.InputDeviceHand.GGT26Dof {
  5. public class InputDeviceGGT26DofPartUI : InputDeviceHandPartUI {
  6. public InputDeviceGGT26DofPart inputDeviceGGT26DofPart {
  7. get {
  8. return inputDevicePartBase as InputDeviceGGT26DofPart;
  9. }
  10. }
  11. public GameObject rootHand;
  12. public ModelGGT26Dof modelGGT26Dof {
  13. get {
  14. return modelBase as ModelGGT26Dof;
  15. }
  16. }
  17. public override void UpdateTransform()
  18. {
  19. transform.position = rootHand.transform.position;
  20. transform.rotation = rootHand.transform.rotation;
  21. }
  22. }
  23. }