protected virtual void Animate(EffectSpriteInstance sprite) { if (AnimationFlag != null) { sprite.PlayAnimation(AnimationFlag.Value); } }
public EffectDisplayEvent(Effects.EffectDefinition effect, Effects.EffectSpriteInstance sprite, IList <Effects.TweenCommand> tweenCommands) { Effect = effect; Sprite = sprite; TweenCommands = tweenCommands; //Source = source; }
//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); }
//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 virtual void Animate(EffectSpriteInstance sprite) { if (AnimationFlag != null) sprite.PlayAnimation(AnimationFlag.Value); }