示例#1
0
 protected virtual void Animate(EffectSpriteInstance sprite)
 {
     if (AnimationFlag != null)
     {
         sprite.PlayAnimation(AnimationFlag.Value);
     }
 }
示例#2
0
文件: Events.cs 项目: Azarem/RogueAPI
 public EffectDisplayEvent(Effects.EffectDefinition effect, Effects.EffectSpriteInstance sprite, IList <Effects.TweenCommand> tweenCommands)
 {
     Effect        = effect;
     Sprite        = sprite;
     TweenCommands = tweenCommands;
     //Source = source;
 }
示例#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);
                }
            }
        }
 protected override void Animate(EffectSpriteInstance sprite)
 {
     sprite.PlayAnimation(1, 1, true);
 }
示例#5
0
 protected override void Animate(EffectSpriteInstance sprite)
 {
     sprite.PlayAnimation(1, 1, true);
 }
示例#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);
 }
示例#7
0
 protected virtual void Animate(EffectSpriteInstance sprite)
 {
     if (AnimationFlag != null)
         sprite.PlayAnimation(AnimationFlag.Value);
 }