public void SectionStateEventHandler(NFCSection.UI_SECTION_STATE eState, bool bNowActive) { if (eState == NFCSection.UI_SECTION_STATE.UISS_CREATEHALL && bNowActive) { SelectJob(); } }
public void RegisterSectionStateCallback(NFCSection.UI_SECTION_STATE eState, SectionStateEventHandler handler) { SectionData xData = null; if (mhtWindow.TryGetValue(eState, out xData)) { xData.doWindowHandleDel += handler; } }
public GameObject GetGameSectionWindow(NFCSection.UI_SECTION_STATE eState) { SectionData xData = null; if (mhtWindow.TryGetValue(eState, out xData)) { return(xData.xWindowGameObject); } return(null); }
public void HideState(NFCSection.UI_SECTION_STATE eState) { SectionData xData = null; if (mhtWindow.TryGetValue(eState, out xData)) { xData.xWindowGameObject.SetActive(false); if (null != xData.doWindowHandleDel) { xData.doWindowHandleDel(eState, false); } } }
public void AddGameSectionWindow(NFCSection.UI_SECTION_STATE eState, GameObject go) { SectionData xData = null; if (mhtWindow.TryGetValue(eState, out xData)) { xData.xWindowGameObject = go; } else { xData = new SectionData(); xData.xWindowGameObject = go; mhtWindow [eState] = xData; } }
public void SetGameState(NFCSection.UI_SECTION_STATE eState) { if (eState == meUIState) { SectionData xData = null; if (!mhtWindow.TryGetValue(eState, out xData) || xData.xWindowGameObject.activeSelf == true) { return; } } HideState(meUIState); meUIState = eState; ShowState(); }