Territory/Assets/Game/Script/Utils/Tweening/TweenMaterial.cs
/// <summary>
/// begin the tween (cubic bezier curve)
/// </summary>
/// <param name="go"></param>
/// <param name="duration"></param>
/// <param name="targetPoint"></param>
/// <returns></returns>
begin the tween (cubic bezier curve)
begin the tween ( cubic bezier curve )
static public TweenMaterial Begin(GameObject go, float duration, string propertyName, float destValue)
    {
        TweenMaterial comp = UITweener.Begin<TweenMaterial>(go, duration);
        comp.m_propertyName = propertyName;
        comp.m_srcValue = comp.value;
        comp.m_destValue = destValue;
        if (duration <= 0f)
        {
            comp.Sample(1f, true);
            comp.enabled = false;
        }
        return comp;
    }
static public TweenMaterial Begin ( GameObject go , float duration , string propertyName , float destValue ) { TweenMaterial comp = UITweener . Begin < TweenMaterial > ( go , duration ) ; comp . m_propertyName = propertyName ; comp . m_srcValue = comp . value ; comp . m_destValue = destValue ; if ( duration <= 0f ) { comp . Sample ( 1f , true ) ; comp . enabled = false ; } return comp ; }
begin the tween (cubic bezier curve)
begin the tween ( cubic bezier curve )
None
go
GameObject
None
duration
float
None
propertyName
string
destValue
float
targetPoint
None