public void ChangeWorld(IDynamic dynamic, Direction direction) { switch (direction) { case Direction.Right: WorldOnFocus.RemoveDynamicEntity((Entity)dynamic); dynamic.ChangeWorld(WorldOnFocus.RightWorld, direction); WorldOnFocus.RightWorld.AddDynamicEntity((Entity)dynamic); break; case Direction.Left: WorldOnFocus.RemoveDynamicEntity((Entity)dynamic); dynamic.ChangeWorld(WorldOnFocus.LeftWorld, direction); WorldOnFocus.LeftWorld.AddDynamicEntity((Entity)dynamic); break; } if (!(dynamic is Cow)) { return; } switch (direction) { case Direction.Right: WorldOnFocus = WorldOnFocus.RightWorld; break; case Direction.Left: WorldOnFocus = WorldOnFocus.LeftWorld; break; } }