/// <summary> /// Start the tweening operation. /// </summary> static public TweenFloat Begin(GameObject go, Component com, string cName, float duration, float target) { TweenFloat comp = UITweener.Begin <TweenFloat>(go, duration); comp.prf = new PropertyReference(); comp.prf.Set(com, cName); comp.from = comp.value; comp.to = target; if (duration <= 0f) { comp.Sample(1f, true); comp.enabled = false; } return(comp); }