Exemplo n.º 1
0
        public EffectPiece SideFade(string spriteName, string direction = "left", float time = 0.5f)
        {
            Queue <NewImageEffect> effects = new Queue <NewImageEffect>();

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