1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using UnityEngine;
- namespace SC.XR.Unity.Module_InputSystem.InputDeviceHand {
- public class InputDeviceHandPart : InputDevicePartBase {
- public InputDeviceHand inputDeviceHand {
- get { return Transition<InputDeviceHand>(inputDeviceBase); }
- }
- public InputDeviceHandPartUI inputDeviceHandPartUI {
- get { return Transition<InputDeviceHandPartUI>(inputDevicePartUIBase); }
- }
- public HandDetector gGT26DofDetector {
- get { return Transition<HandDetector>(detectorBase); }
- }
- public InputDataHand inputDataHand {get; set;}
- public InputDataGetHand inputDataGetHand { get; set; }
- public InputDeviceHandPartStatus inputDevicePartStatusHand { get; set; }
- public InputDevicePartDispatchEventHand inputDevicePartDispatchEventHand { get; set; }
- [Tooltip("Enable CubeModel")]
- public bool EnableCubeHandModel = false;
- [Tooltip("Enable EffectHandModel")]
- public bool EnableEffectHandModel = false;
- public override void OnSCStart() {
- if (inputDataBase != null)
- inputDataBase.ModuleStart();
- if (inputDevicePartStatusBase != null)
- inputDevicePartStatusBase.ModuleStart();
- }
- public override void OnSCLateUpdate() {
- base.OnSCLateUpdate();
- if (inputDataBase.isVaild == false) {
- if (inputDataGetBase != null && inputDataGetBase.IsModuleStarted)
- inputDataGetBase.ModuleStop();
- } else {
- if (inputDataGetBase != null && !inputDataGetBase.IsModuleStarted)
- inputDataGetBase.ModuleStart();
- }
- }
- protected override void ModuleCreater() {
- inputDevicePartDispatchEventBase = inputDevicePartDispatchEventHand = new InputDevicePartDispatchEventHand(this);
- }
- }
- }
|