Ejemplo n.º 1
0
 protected virtual void Animate(EffectSpriteInstance sprite)
 {
     if (AnimationFlag != null)
     {
         sprite.PlayAnimation(AnimationFlag.Value);
     }
 }
Ejemplo n.º 2
0
 public EffectDisplayEvent(Effects.EffectDefinition effect, Effects.EffectSpriteInstance sprite, IList <Effects.TweenCommand> tweenCommands)
 {
     Effect        = effect;
     Sprite        = sprite;
     TweenCommands = tweenCommands;
     //Source = source;
 }
Ejemplo n.º 3
0
        //protected virtual IList<TweenCommand> GetTweenCommands(EffectSpriteInstance sprite)
        //{
        //    return null;
        //}

        protected virtual void ApplyTweens(EffectSpriteInstance sprite, IList <TweenCommand> commands)
        {
            if (commands != null)
            {
                foreach (var t in commands)
                {
                    t.Call(sprite);
                }
            }
        }
Ejemplo n.º 4
0
 protected override void Animate(EffectSpriteInstance sprite)
 {
     sprite.PlayAnimation(1, 1, true);
 }
Ejemplo n.º 5
0
 protected override void Animate(EffectSpriteInstance sprite)
 {
     sprite.PlayAnimation(1, 1, true);
 }
Ejemplo n.º 6
0
 //protected virtual IList<TweenCommand> GetTweenCommands(EffectSpriteInstance sprite)
 //{
 //    return null;
 //}
 protected virtual void ApplyTweens(EffectSpriteInstance sprite, IList<TweenCommand> commands)
 {
     if (commands != null)
         foreach (var t in commands)
             t.Call(sprite);
 }
Ejemplo n.º 7
0
 protected virtual void Animate(EffectSpriteInstance sprite)
 {
     if (AnimationFlag != null)
         sprite.PlayAnimation(AnimationFlag.Value);
 }