diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XCurve.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XCurve.cs')
-rw-r--r-- | Client/Assets/Scripts/XCurve.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XCurve.cs b/Client/Assets/Scripts/XCurve.cs new file mode 100644 index 00000000..25f276f8 --- /dev/null +++ b/Client/Assets/Scripts/XCurve.cs @@ -0,0 +1,41 @@ +using UnityEngine;
+using XUtliPoolLib;
+
+public class XCurve : MonoBehaviour , IXCurve
+{
+ public float Max_Value = 0;
+ public float Land_Value = 0;
+ public AnimationCurve Curve = new AnimationCurve();
+
+ public int length { get {return Curve.length;} }
+
+ public float Evaluate(float time)
+ {
+ return Curve.Evaluate (time);
+ }
+ public float GetValue(int index)
+ {
+ return Curve [index].value;
+ }
+
+ public float GetTime(int index)
+ {
+ return Curve [index].time;
+ }
+
+ public float GetMaxValue()
+ {
+ return Max_Value;
+ }
+
+ public float GetLandValue()
+ {
+ return Land_Value;
+ }
+
+ public bool Deprecated
+ {
+ get;
+ set;
+ }
+}
|