upm-2.1.8 2.1.8
SuGar-456 1 month ago
parent ce5cf51aa3
commit cc62a3dfd5
  1. 8
      Editor/NaughtyAttributes/Editor.meta
  2. 11
      Editor/Udexreal.HandDriver.Editor.asmdef
  3. 16
      Runtime/HandDriver.cs
  4. 8
      Runtime/NaughtyAttributes.meta
  5. 14
      Runtime/Udexreal.HandDriver.Runtime.asmdef.txt
  6. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes.meta
  7. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core.meta
  8. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes.meta
  9. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/AllowNestingAttribute.cs
  10. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/AllowNestingAttribute.cs.meta
  11. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/AnimatorParamAttribute.cs
  12. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/AnimatorParamAttribute.cs.meta
  13. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/CurveRangeAttribute.cs
  14. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/CurveRangeAttribute.cs.meta
  15. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/DrawerAttribute.cs
  16. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/DrawerAttribute.cs.meta
  17. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/DropdownAttribute.cs
  18. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/DropdownAttribute.cs.meta
  19. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/EnumFlagsAttribute.cs
  20. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/EnumFlagsAttribute.cs.meta
  21. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/Expandable.cs
  22. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/Expandable.cs.meta
  23. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/HorizontalLineAttribute.cs
  24. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/HorizontalLineAttribute.cs.meta
  25. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/InfoBoxAttribute.cs
  26. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/InfoBoxAttribute.cs.meta
  27. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/InputAxisAttribute.cs
  28. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/InputAxisAttribute.cs.meta
  29. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/LayerAttribute.cs
  30. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/LayerAttribute.cs.meta
  31. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/MinMaxSliderAttribute.cs
  32. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/MinMaxSliderAttribute.cs.meta
  33. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/ProgressBarAttribute.cs
  34. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/ProgressBarAttribute.cs.meta
  35. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/ResizableTextAreaAttribute.cs
  36. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/ResizableTextAreaAttribute.cs.meta
  37. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/SceneAttribute.cs
  38. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/SceneAttribute.cs.meta
  39. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs
  40. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs.meta
  41. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/TagAttribute.cs
  42. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes/TagAttribute.cs.meta
  43. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase.meta
  44. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs
  45. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs.meta
  46. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs
  47. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs.meta
  48. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs
  49. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs.meta
  50. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs
  51. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs.meta
  52. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs
  53. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs.meta
  54. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/INaughtyAttribute.cs
  55. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/INaughtyAttribute.cs.meta
  56. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes.meta
  57. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/BoxGroupAttribute.cs
  58. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/BoxGroupAttribute.cs.meta
  59. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/DisableIfAttribute.cs
  60. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/DisableIfAttribute.cs.meta
  61. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/EnableIfAttribute.cs
  62. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/EnableIfAttribute.cs.meta
  63. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/EnableIfAttributeBase.cs
  64. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/EnableIfAttributeBase.cs.meta
  65. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/FoldoutAttribute.cs
  66. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/FoldoutAttribute.cs.meta
  67. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/HideIfAttribute.cs
  68. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/HideIfAttribute.cs.meta
  69. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/IGroupAttribute.cs
  70. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/IGroupAttribute.cs.meta
  71. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/LabelAttribute.cs
  72. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/LabelAttribute.cs.meta
  73. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/MetaAttribute.cs
  74. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/MetaAttribute.cs.meta
  75. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/OnValueChangedAttribute.cs
  76. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/OnValueChangedAttribute.cs.meta
  77. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/ReadOnlyAttribute.cs
  78. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/ReadOnlyAttribute.cs.meta
  79. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/ShowIfAttribute.cs
  80. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/ShowIfAttribute.cs.meta
  81. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/ShowIfAttributeBase.cs
  82. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/MetaAttributes/ShowIfAttributeBase.cs.meta
  83. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/NaughtyAttributes.Core.asmdef
  84. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/NaughtyAttributes.Core.asmdef.meta
  85. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/Utility.meta
  86. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/Utility/EColor.cs
  87. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/Utility/EColor.cs.meta
  88. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/Utility/EConditionOperator.cs
  89. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/Utility/EConditionOperator.cs.meta
  90. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes.meta
  91. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes/MaxValueAttribute.cs
  92. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes/MaxValueAttribute.cs.meta
  93. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes/MinValueAttribute.cs
  94. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes/MinValueAttribute.cs.meta
  95. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes/RequiredAttribute.cs
  96. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes/RequiredAttribute.cs.meta
  97. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes/ValidateInputAttribute.cs
  98. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes/ValidateInputAttribute.cs.meta
  99. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes/ValidatorAttribute.cs
  100. 0
      Samples~/Hand Driver Demo/Plugins/NaughtyAttributes/Core/ValidatorAttributes/ValidatorAttribute.cs.meta
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: f3f898b36e67bd14c92e03d636f51c7b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,11 +0,0 @@
{
"name": "HandDriver.Editor",
"rootNamespace": "HandDriver.Editor",
"references": [
"HandDriver.Runtime"
],
"includePlatforms": [
"Editor"
],
"autoReferenced": true
}

@ -1,6 +1,4 @@
#if UNITY_EDITOR
using NaughtyAttributes;
#endif
using System.Collections.Generic;
using TouchSocket.Core;
using UnityEngine;
@ -106,17 +104,11 @@ public class HandDriver : MonoBehaviour
public string SendBackIP;
public VibrationData vibrationData;
#if UNITY_EDITOR
[BoxGroup("Vibrator 1"), Min(0), Label("Million Second")]
#endif
public int Duration1 = 20;
#if UNITY_EDITOR
[BoxGroup("Vibrator 1"), Range(4, 10)]
#endif
public int Amplitude1 = 4;
#if UNITY_EDITOR
[Button]
#endif
public void Vibrator_1Active()
{
if (Network == null) return;
@ -142,17 +134,11 @@ public class HandDriver : MonoBehaviour
Network.SendVibrationMsg(CharacterName, SendBackIP, vibrationData);
}
#if UNITY_EDITOR
[BoxGroup("Vibrator 2"), Min(0), Label("Million Second")]
#endif
public int Duration2 = 20;
#if UNITY_EDITOR
[BoxGroup("Vibrator 2"), Range(4, 10)]
#endif
public int Amplitude2 = 4;
#if UNITY_EDITOR
[Button]
#endif
public void Vibrator_2Active()
{
if (Network == null) return;
@ -177,9 +163,7 @@ public class HandDriver : MonoBehaviour
}
Network.SendVibrationMsg(CharacterName, SendBackIP, vibrationData);
}
#if UNITY_EDITOR
[Button]
#endif
public void BothActiveWithVibrator_1Parameters()
{
if (Network == null) return;

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: e96c44af053ca4440bcd4a81d3c29943
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,14 +0,0 @@
{
"name": "HandDriver.Runtime",
"rootNamespace": "HandDriver",
"references": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save