Exemplo n.º 1
0
 public static void ConvertSpriteToSpriteInfo(Sprite from, SpriteInfo to)
 {
     if (from != null && to != null)
         to = new SpriteInfo(from.SpriteName, from.ImageName, from.FrameNum, from.Speed);
 }
Exemplo n.º 2
0
 public static void ConvertSpriteInfoTOSprite(SpriteInfo from, Sprite to)
 {
     if(from != null && to != null)
         to = new Sprite(from.SpriteName, from.ImageName, from.FrameNum, from.Speed, false);
 }