public static void DoShutdown() { client2connection.Clear(); connection2client.Clear(); connection2status.Clear(); if (eacScout != null) { Debug.Log("EasyAntiCheat Scout Shutting Down"); eacScout.Dispose(); eacScout = null; } if (easyAntiCheat != null) { Debug.Log("EasyAntiCheat Server Shutting Down"); easyAntiCheat.Dispose(); easyAntiCheat = null; } }
public void TestMethod2() { BaseUnitType gUnit = new Infantry(); var inf1 = new Infantry(); var inf2 = new Infantry(); var inf3 = new Infantry(); var eng1 = new Engineer(); var eng2 = new Engineer(); var eng3 = new Engineer(); var scout1 = new Scout(); var scout2 = new Scout(); var scout3 = new Scout(); var mar1 = new Marine(); var mar2 = new Marine(); var mar3 = new Marine(); var light1 = new Light(); var light2 = new Light(); var light3 = new Light(); var heavy1 = new Heavy(); var heavy2 = new Heavy(); var heavy3 = new Heavy(); var mort1 = new Mortar(); var mort2 = new Mortar(); var mort3 = new Mortar(); var art1 = new Artillery(); var art2 = new Artillery(); var art3 = new Artillery(); var air1 = new Airborn(); var air2 = new Airborn(); var air3 = new Airborn(); var snip1 = new Sniper(); var snip2 = new Sniper(); var snip3 = new Sniper(); inf1.Dispose(); eng2.Dispose(); scout1.Dispose(); mar3.Dispose(); light2.Dispose(); heavy1.Dispose(); mort3.Dispose(); art2.Dispose(); air3.Dispose(); snip1.Dispose(); inf1.DisplayString(); inf2.DisplayString(); inf3.DisplayString(); eng1.DisplayString(); eng2.DisplayString(); eng3.DisplayString(); scout1.DisplayString(); scout2.DisplayString(); scout3.DisplayString(); mar1.DisplayString(); mar2.DisplayString(); mar3.DisplayString(); light1.DisplayString(); light2.DisplayString(); light3.DisplayString(); heavy1.DisplayString(); heavy2.DisplayString(); heavy3.DisplayString(); mort1.DisplayString(); mort2.DisplayString(); mort3.DisplayString(); art1.DisplayString(); art2.DisplayString(); art3.DisplayString(); air1.DisplayString(); air2.DisplayString(); air3.DisplayString(); snip1.DisplayString(); snip2.DisplayString(); snip3.DisplayString(); }