private void resetTheGame() { lives = 50; collisions.Items.Clear(); observers.Clear(); //Remove all elements in the ArrayList unitsObservers = new UnitsObservers(); initializeBlocks(); initializeBalls(); observers = unitsObservers.getObservers(); tmrMoveBall.Enabled = true; }
public Form1() { InitializeComponent(); unitsObservers = new UnitsObservers(); }