From ded822e98e8eda49618d17e53407b0df1896e539 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 22 Apr 2022 19:24:15 +0800 Subject: * rename AlienSurvival project to SurvivalTest --- .../MinMaxSliderAttribute/MinMaxSliderAttribute.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 SurvivalTest/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs (limited to 'SurvivalTest/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs') diff --git a/SurvivalTest/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs b/SurvivalTest/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs new file mode 100644 index 0000000..c01fbe3 --- /dev/null +++ b/SurvivalTest/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs @@ -0,0 +1,15 @@ +using UnityEngine; +using UnityEditor; + +public class MinMaxSliderAttribute : PropertyAttribute +{ + + public float min; + public float max; + + public MinMaxSliderAttribute(float min, float max) + { + this.min = min; + this.max = max; + } +} \ No newline at end of file -- cgit v1.1-26-g67d0