Exemplo n.º 1
0
 public virtual void AddRenderables(float mapPosX, float mapPosY, IList <RenderTextureRegion> list)
 {
     if (activeAnimation != null)
     {
         var frame = activeAnimation.GetCurrentFrame(direction);
         if (frame != null)
         {
             RenderTextureRegion ren = new RenderTextureRegion(0, frame, mapPosX, mapPosY);
             list.Add(ren);
         }
     }
 }
Exemplo n.º 2
0
        public override void AddRenderables(float mapPosX, float mapPosY, IList <RenderTextureRegion> list)
        {
            int i = 0;

            foreach (var anim in activeAnimations)
            {
                var frame = anim.GetCurrentFrame(Direction);
                if (frame != null)
                {
                    i++;
                    RenderTextureRegion ren = new RenderTextureRegion(0, frame, mapPosX, mapPosY);
                    ren.Prio = i;
                    list.Add(ren);
                }
            }
        }