/// <summary> /// 蒙版特效 /// </summary> /// <param name="spriteName">新图</param> /// <param name="direction">方向(默认:左)</param> /// <param name="time">持续时长s(默认0.5s)</param> public EffectPiece Mask(string spriteName, string maskName, float time = 1.0f) { Queue <NewImageEffect> effects = new Queue <NewImageEffect>(); effects.Enqueue(NewEffectBuilder.Mask(spriteName, maskName, time)); effects.Enqueue(NewEffectBuilder.SetBackSprite(spriteName)); return(new EffectPiece(id++, effects)); }