InputDeviceHandUI.cs 719 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SC.XR.Unity.Module_InputSystem.InputDeviceHand {
  7. public class InputDeviceHandUI : InputDeviceUIBase {
  8. public virtual void SetActiveUI(HandUIType uitype,bool active) {
  9. foreach (var item in UIModuleList) {
  10. IHandUIType handUIType = item as IHandUIType;
  11. if (handUIType != null && handUIType.UIType == uitype) {
  12. if (active) {
  13. item.ModuleStart();
  14. } else {
  15. item.ModuleStop();
  16. }
  17. }
  18. }
  19. }
  20. }
  21. }