public void ReleaseAll() { Dictionary <Type, BaseUIController> .Enumerator iter = controllerMaps.GetEnumerator(); while (iter.MoveNext()) { BaseUIController controller = iter.Current.Value; controller.Hide(); controller.Destroy(); } }
public void HideLayerObjects(BaseUIController controller) { Dictionary <Type, BaseUIController> .Enumerator iter = controllerMaps.GetEnumerator(); while (iter.MoveNext()) { BaseUIController temp = iter.Current.Value; if (temp == controller || temp.layer != controller.layer) { continue; } temp.Hide(); } }