| 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
 | | using UnityEngine; |  |   |  | public class TweenCurve : ScriptableObject |  | { |  |     public AnimationCurve curve = AnimationCurve.EaseInOut(0, 0, 1, 1); |  |   |  |     Keyframe[] m_Keys; |  |     public Keyframe[] keys { |  |         get { |  |             return m_Keys ?? (m_Keys = curve.keys); |  |         } |  |     } |  |   |  |     public int length { |  |         get { |  |             return curve.length; |  |         } |  |     } |  |   |  |     float m_TotalTime = -1f; |  |     public float totalTime { |  |         get { |  |             if (m_TotalTime < 0f) |  |             { |  |                 m_TotalTime = curve.keys[curve.keys.Length - 1].time - curve.keys[0].time; |  |             } |  |             return m_TotalTime; |  |         } |  |     } |  |   |  |     public Keyframe this[int index] { |  |         get { |  |             return curve[index]; |  |         } |  |     } |  |   |  |     public float Evaluate(float time) |  |     { |  |         float aaa = curve.Evaluate(time); |  |         return aaa; |  |     } |  |   |  | } | 
 |