public void ShowPopup(POPUP_TYPE type, PopupUIData data = null) { // SoundManager.Instance.PlayFXSound(CommonData.SOUND_TYPE.BUTTON); var popup = mPopupUIList[type]; if (mShowPopup != null && mShowPopup.GetPopupType() == popup.GetPopupType()) { return; } popup.gameObject.SetActive(true); popup.ShowPopup(data); mShowPopup = popup; mShowPopupList.Add(popup); }
public void AddPopup(PopupUI page) { mPopupUIList.Add(page.GetPopupType(), page); page.gameObject.SetActive(false); }