/// <summary> /// 开始补间 /// </summary> static public TweenColor Begin(GameObject go, float duration, Color color) { #if UNITY_EDITOR if (!Application.isPlaying) { return(null); } #endif TweenColor comp = UITweener.Begin <TweenColor>(go, duration); comp.from = comp.value; comp.to = color; if (duration <= 0f) { comp.Sample(1f, true); comp.enabled = false; } return(comp); }