public void hideAllUI() { foreach (KeyValuePair <string, GameHandler> a in uiDic) { GameUIHandlerInterface uihander = (GameUIHandlerInterface)a.Value; if (a.Key != name) { uihander.UnShow(); } } }
public void checkSingel(string name) { foreach (KeyValuePair <string, GameHandler> a in uiDic) { GameUIHandlerInterface uihander = (GameUIHandlerInterface)a.Value; if (a.Key != name && !uihander.isAllways()) { uihander.UnShow(); } } }