13 private float m_StartFloat;
14 private float m_TargetFloat;
15 private float m_Duration;
16 private bool m_IgnoreTimeScale;
26 get {
return m_StartFloat; }
27 set { m_StartFloat = value; }
36 get {
return m_TargetFloat; }
37 set { m_TargetFloat = value; }
46 get {
return m_Duration; }
47 set { m_Duration = value; }
56 get {
return m_IgnoreTimeScale; }
57 set { m_IgnoreTimeScale = value; }
69 m_Target.Invoke( Mathf.Lerp (m_StartFloat, m_TargetFloat, floatPercentage) );
81 m_Target.AddListener(callback);
93 m_Finish.AddListener(callback);
98 return m_IgnoreTimeScale;
108 return m_Target !=
null;
116 if (m_Finish !=
null)
float targetFloat
Gets or sets the target float.
void TweenValue(float floatPercentage)
Tweens the float based on percentage.
void AddOnFinishCallback(UnityAction callback)
Adds a on finish callback.
float duration
Gets or sets the duration of the tween.
void Finished()
Invokes the on finish callback.
bool GetIgnoreTimescale()
void AddOnChangedCallback(UnityAction< float > callback)
Adds a on changed callback.
float startFloat
Gets or sets the starting float.
bool ignoreTimeScale
Gets or sets a value indicating whether this UnityEngine.UI.Tweens.ColorTween should ignore time scal...