summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XCurve.cs
blob: 25f276f8c27e53405e6b8d7989c82dd4c26a17ce (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
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;
    }
}