//------------------------------------------------- #region public Overrided Methods Region public override void AnimationFactoryWorker(object sender, EventArgs e) { MapElement mapElement = null; for (int i = 0; i < TheMap.MapElements.Length; i++) { mapElement = TheMap.MapElements[i]; if (mapElement.ElementLocationF.X >= Father.Width) { mapElement.SetElementLocation(0 - mapElement.Width, UnlimitedRandomicWorks[1].GetNumber()); } else { mapElement.SetElementLocation( mapElement.ElementLocationF.X + CloudMovesRate, mapElement.ElementLocationF.Y); } } Father.Refresh(); }