/// <summary> /// 淡出并移除背景 /// </summary> /// <param name="time">淡出时间</param> public static Queue <ImageEffect> FadeOutBackground(float time) { AnimationBuilder builder = new AnimationBuilder(); UI2DSprite ui = EffectBuilder.backgroundSprite; return(builder.BeginWith(EffectBuilder.FadeOut(ui, time)).Then(EffectBuilder.RemoveSprite(ui)).Get()); }