public static void Remove(Interface.Struct.GameObjectID obj) { GameObject.ObjectID id = new GameObject.ObjectID(obj); for (int i = 0; i < AllGameObjects.Count; i++) { if (AllGameObjects[i].ID == id) { Out.Log(Significance.Low, "Removed game object " + id); AllGameObjects.RemoveAt(i); return; } } Out.Log(Significance.Unusual, "Unable to locate game object '" + id + "'"); }