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/ActionScripts |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/ActionScripts')
-rw-r--r-- | Client/Assets/Scripts/ActionScripts/HUDDescription.cs | 46 | ||||
-rw-r--r-- | Client/Assets/Scripts/ActionScripts/HUDDescription.cs.meta | 8 |
2 files changed, 54 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/ActionScripts/HUDDescription.cs b/Client/Assets/Scripts/ActionScripts/HUDDescription.cs new file mode 100644 index 00000000..3e1496db --- /dev/null +++ b/Client/Assets/Scripts/ActionScripts/HUDDescription.cs @@ -0,0 +1,46 @@ +using UnityEngine;
+using XUtliPoolLib;
+using System.Collections;
+
+public class HUDDescription : MonoBehaviour, IXHUDDescription
+
+{
+ /// <summary>
+ /// Curve used to move entries with time.
+ /// </summary>
+
+ public AnimationCurve offsetCurve = new AnimationCurve(new Keyframe[] { new Keyframe(0f, 0f), new Keyframe(3f, 40f) });
+
+ /// <summary>
+ /// Curve used to fade out entries with time.
+ /// </summary>
+
+ public AnimationCurve alphaCurve = new AnimationCurve(new Keyframe[] { new Keyframe(1f, 1f), new Keyframe(3f, 0f) });
+
+ /// <summary>
+ /// Curve used to scale the entries.
+ /// </summary>
+
+ public AnimationCurve scaleCurve = new AnimationCurve(new Keyframe[] { new Keyframe(0f, 0f), new Keyframe(0.25f, 1f) });
+
+ public AnimationCurve GetPosCurve()
+ {
+ return offsetCurve;
+ }
+
+ public AnimationCurve GetAlphaCurve()
+ {
+ return alphaCurve;
+ }
+
+ public AnimationCurve GetScaleCurve()
+ {
+ return scaleCurve;
+ }
+
+ public bool Deprecated
+ {
+ get;
+ set;
+ }
+}
diff --git a/Client/Assets/Scripts/ActionScripts/HUDDescription.cs.meta b/Client/Assets/Scripts/ActionScripts/HUDDescription.cs.meta new file mode 100644 index 00000000..ed245efd --- /dev/null +++ b/Client/Assets/Scripts/ActionScripts/HUDDescription.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2
+guid: 594814dd9584e6948880418157c9729d
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
|