From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/ActionScripts/HUDDescription.cs | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Client/Assets/Scripts/ActionScripts/HUDDescription.cs (limited to 'Client/Assets/Scripts/ActionScripts/HUDDescription.cs') 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 + +{ + /// + /// Curve used to move entries with time. + /// + + public AnimationCurve offsetCurve = new AnimationCurve(new Keyframe[] { new Keyframe(0f, 0f), new Keyframe(3f, 40f) }); + + /// + /// Curve used to fade out entries with time. + /// + + public AnimationCurve alphaCurve = new AnimationCurve(new Keyframe[] { new Keyframe(1f, 1f), new Keyframe(3f, 0f) }); + + /// + /// Curve used to scale the entries. + /// + + 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; + } +} -- cgit v1.1-26-g67d0