예제 #1
0
 public SequencialAnimator(
     string i_Name,
     TimeSpan i_AnimationLength,
     Sprite i_BoundSprite,
     params SpriteAnimator[] i_Animations)
     : base(i_Name, i_AnimationLength, i_BoundSprite, i_Animations)
 {
 }
예제 #2
0
        // 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);
            }
        }
예제 #3
0
 // 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;
 }
예제 #4
0
 protected virtual void CloneSpriteInfo()
 {
     if (m_OriginalSpriteInfo == null)
     {
         m_OriginalSpriteInfo = m_BoundSprite.ShallowClone();
     }
 }