public override void Initialize(RenderContext context) { Ground ground = GroundPrefabList.GetPrefab(Collision.Col1); ground.Translate(0, 0); AddChild(ground); Ground Top = GroundPrefabList.GetPrefab(Collision.Col1); Top.Rotate(0, 0, 180); Top.Translate(1200, 300); AddChild(Top); Pickup pickup = PickupPrefabList.GetPrefab <HealthPickup>(PickupName.Health); pickup.Translate(1200, 150); AddChild(pickup); var size = (Vector2)ground.RigidBody.UserData; Width = (int)size.X; base.Initialize(context); }