ShowPos.cs 539 B

1234567891011121314151617181920
  1. using SC.XR.Unity.Module_InputSystem;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class ShowPos : MonoBehaviour
  6. {
  7. public TextMesh textMesh;
  8. public Transform nag;
  9. public GameObject ggt26Dof;
  10. void Update()
  11. {
  12. transform.position = nag.position + new Vector3(0, 0.04f, 0);
  13. textMesh.text = transform.position.ToString();
  14. //if (!ggt26Dof.activeSelf)
  15. // Module_InputSystem.instance.SetActiveInputDevice(InputDeviceType.GGT26Dof, true);
  16. }
  17. }