public void Clear() { lock (lockObject) { players.Clear(); } }
public static void PopulateAIList() { AITypes.Clear(); AIInstances.Clear(); NPCAIType.Clear(); Type ti = typeof(IAICore); if (script != null) { foreach (Type t in script.GetTypes()) { if (ti.IsAssignableFrom(t) && t.IsPublic) { CreateAIInstance(t.FullName, t.Name); } } } }