Пример #1
0
        /// <summary>
        /// 圆形展开特效(由内而外)
        /// </summary>
        /// <param name="spriteName">新图</param>
        /// <param name="inverse">是否逆向(默认否)</param>
        /// <param name="time">持续时长s(默认0.5s)</param>
        public EffectPiece Circle(string spriteName, bool inverse = false, float time = 0.5f)
        {
            Queue <NewImageEffect> effects = new Queue <NewImageEffect>();

            effects.Enqueue(NewEffectBuilder.Circle(spriteName, inverse, time));
            effects.Enqueue(NewEffectBuilder.SetSpriteByDepth(-1, spriteName));
            return(new EffectPiece(id++, effects));
        }