summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Utils
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-08-06 19:02:03 +0800
committerchai <chaifix@163.com>2021-08-06 19:02:03 +0800
commit754ceacd8ab62e7094f1827ae45ea16a502725ad (patch)
tree7165384f470bf0c4ae261d7dd22876416c150964 /Assets/Scripts/Utils
parent35f2e468715e12d93cb88f2258c2d0ae82d1d189 (diff)
*curve
Diffstat (limited to 'Assets/Scripts/Utils')
-rw-r--r--Assets/Scripts/Utils/MinMaxAttribute.cs14
-rw-r--r--Assets/Scripts/Utils/MinMaxAttribute.cs.meta11
2 files changed, 25 insertions, 0 deletions
diff --git a/Assets/Scripts/Utils/MinMaxAttribute.cs b/Assets/Scripts/Utils/MinMaxAttribute.cs
new file mode 100644
index 00000000..bba4087a
--- /dev/null
+++ b/Assets/Scripts/Utils/MinMaxAttribute.cs
@@ -0,0 +1,14 @@
+using UnityEngine;
+
+public class MinMaxSliderAttribute : PropertyAttribute
+{
+
+ public float min;
+ public float max;
+
+ public MinMaxSliderAttribute(float min, float max)
+ {
+ this.min = min;
+ this.max = max;
+ }
+}
diff --git a/Assets/Scripts/Utils/MinMaxAttribute.cs.meta b/Assets/Scripts/Utils/MinMaxAttribute.cs.meta
new file mode 100644
index 00000000..7a97ffb4
--- /dev/null
+++ b/Assets/Scripts/Utils/MinMaxAttribute.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 7afbee84722215549ae77c81ee280f53
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant: