blob: 3e1496dbfe55c7312826da3513b68f8f412f5699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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;
}
}
|