public static void ConvertSpriteToSpriteInfo(Sprite from, SpriteInfo to) { if (from != null && to != null) to = new SpriteInfo(from.SpriteName, from.ImageName, from.FrameNum, from.Speed); }
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); }