public static void Destroy(IControl control) { ObjectControl objControl = control as ObjectControl; objControl.Dispose(); GameObject.Destroy(objControl.GameObject); list.Remove(objControl); }