InputDeviceGC.cs 834 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using UnityEngine;
  7. namespace SC.XR.Unity.Module_InputSystem.InputDeviceGC {
  8. public abstract class InputDeviceGC : InputDeviceBase {
  9. /// <summary>
  10. /// 编辑器模式是否打开HandShank,对于非编辑器模式不影响
  11. /// </summary>
  12. [Header("Is Simulate In Editor Mode")]
  13. public bool SimulateInEditorMode = false;
  14. [Header("Enable GameController")]
  15. public bool OneGCActive = true;
  16. public bool TwoGCActive = false;
  17. protected override void InputDeviceStart() {
  18. SetActiveInputDevicePart(InputDevicePartType.GCOne, OneGCActive);
  19. SetActiveInputDevicePart(InputDevicePartType.GCTwo, TwoGCActive);
  20. }
  21. }
  22. }