public static void CopyCurrentEmitter() { if (AppState.Self.CurrentEmitter == null) { return; } Emitter tempEmitter = AppState.Self.CurrentEmitter.Clone(); tempEmitter.Name = StringFunctions.IncrementNumberAtEnd(tempEmitter.Name); while (Emitters.FindWithNameContaining(tempEmitter.Name) != null) { tempEmitter.Name = StringFunctions.IncrementNumberAtEnd(tempEmitter.Name); } Emitters.Add(tempEmitter); SpriteManager.AddEmitter(tempEmitter); }