public void Update(GameTime gametime, List<GameObject> all)
{
foreach (GameObject gameObject in all)
{
if (gameObject.Sprite != null)
{
Vector2 pos = gameObject.Position + gameObject.Sprite.Origin;
if (gameObject.Sprite.BackgroundAnimation != null)
{
gameObject.Sprite.BackgroundAnimation.Update(gametime);
}
if (gameObject.Sprite.Animation != null)
{
gameObject.Sprite.Animation.Update(gametime);
}
if(gameObject.Baby != null) {
gameObject.Baby.Torso.Animation.Update(gametime);
}
}
}
}