InputDeviceHeadPartStatus.cs 940 B

12345678910111213141516171819202122232425262728
  1. using SC.XR.Unity.Module_InputSystem.InputDeviceHand.GGT26Dof;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using UnityEngine;
  8. using SC.XR.Unity.Module_InputSystem.InputDeviceGC.BT3Dof;
  9. namespace SC.XR.Unity.Module_InputSystem.InputDeviceHead {
  10. public class InputDeviceHeadPartStatus : InputDevicePartStatusBase {
  11. public InputDeviceHeadPart inputDeviceHeadPart;
  12. public InputDeviceHeadPartStatus(InputDeviceHeadPart _inputDeviceHeadPart) : base(_inputDeviceHeadPart) {
  13. inputDeviceHeadPart = _inputDeviceHeadPart;
  14. }
  15. public override void OnSCLateUpdate() {
  16. base.OnSCLateUpdate();
  17. if(Module_InputSystem.instance == null)
  18. return;
  19. inputDeviceHeadPart.inputDataBase.isVaild = ! Module_InputSystem.instance.IsSomeDeviceActiveWithoutHead;
  20. }
  21. }
  22. }