public static void RemoveClass(EClass Class) { Debug.Log("ENV", " - class \"" + Class.Name + "\", content type: " + Class.Content.GetType().FullName); if (Classes.Contains(Class)) { Classes.Remove(Class); } }
public static void AddClass(EClass Class, bool CreateInstance) { Debug.Log("ENV", " + class \"" + Class.Name + "\", content type: " + Class.Content.GetType().FullName); if (Classes.Contains(Class)) { Classes.Remove(Class); } Classes.Add(Class); if (CreateInstance) { Class.CreateInstance(); } }