static HameleonCommander() { meatingSpot1 = null; meatingSpot2 = null; meatingMutex = new Mutex(); meatingCounter = 0; }
void AddHameleon(Hameleon h) { //try { //System.Timers.Timer t = new System.Timers.Timer() { // AutoReset = true, // Interval = 100, //}; //t.Elapsed += (a, b) => h.StartLogic(); //t.Start(); Thread t = new Thread(h.StartLogic); t.Start(); //} //catch(Exception ex) { //Console.WriteLine(ex.Message); //} }