//private static void TimerS(object source, ElapsedEventArgs e) //{ // //Song(); //} //private static void TimerCallback(Object o) private static void TimerT(object source, ElapsedEventArgs e) { //Case of all orbs absorbed if (field1.IsCleared()) { clearedfields++; totaltime += field1.time; field1.ClearField(); field1.CreateField(); } //moveball field1.ball1.Move(field1); //Forced garbage collect GC.Collect(); }
void TimerT(object sender, EventArgs e) { //Case of all orbs absorbed if (field1.IsCleared()) { clearedfields++; totaltime += field1.time; field1.ClearField(); field1.CreateField(); } if (field1.ball1.NextTrap(field1)) { GameEndField(); } //moveball field1.ball1.Move(field1); //Forced garbage collect GC.Collect(); }