public SequencialAnimator( string i_Name, TimeSpan i_AnimationLength, Sprite i_BoundSprite, params SpriteAnimator[] i_Animations) : base(i_Name, i_AnimationLength, i_BoundSprite, i_Animations) { }
// CTOR: me as a ParallelAnimations animation: public CompositeAnimator( string i_Name, TimeSpan i_AnimationLength, Sprite i_BoundSprite, params SpriteAnimator[] i_Animations) : base(i_Name, i_AnimationLength) { this.BoundSprite = i_BoundSprite; foreach (SpriteAnimator animation in i_Animations) { this.Add(animation); } }
// CTORs // CTOR: Me as an AnimationsMamager public CompositeAnimator(Sprite i_BoundSprite) : this("AnimationsMamager", TimeSpan.Zero, i_BoundSprite, new SpriteAnimator[]{}) { this.Enabled = false; this.m_PlaySingleAnimation = false; }
protected virtual void CloneSpriteInfo() { if (m_OriginalSpriteInfo == null) { m_OriginalSpriteInfo = m_BoundSprite.ShallowClone(); } }