public void PushOne(string boxText, string okText = "OK", string cancelText = "CANCEL", Action <bool> act = null, ButtonBgType okBgType = ButtonBgType.Blue, ButtonBgType cancelBgType = ButtonBgType.Brown, Action actOneBtn = null) { MogoOKCancelBoxQueueUnit unit = new MogoOKCancelBoxQueueUnit() { BoxText = boxText, OKText = okText, CancelText = cancelText, OKBgType = okBgType, CancelBgType = cancelBgType, CBAction = act, CBActionOneBtn = actOneBtn }; if (MogoGlobleUIManager.Instance.m_goOKCancelBox != null && MogoGlobleUIManager.Instance.m_goOKCancelBox.gameObject.activeSelf) { m_listBox.Add(unit); Debug.Log("Adding into OKCancel Box Queue"); } else { unit.JustDoIt(); } }
public void PushOne(string boxText, string okText = "OK", string cancelText = "CANCEL", Action<bool> act = null, ButtonBgType okBgType = ButtonBgType.Blue, ButtonBgType cancelBgType = ButtonBgType.Brown,Action actOneBtn = null) { MogoOKCancelBoxQueueUnit unit = new MogoOKCancelBoxQueueUnit() { BoxText = boxText, OKText = okText, CancelText = cancelText, OKBgType = okBgType, CancelBgType = cancelBgType, CBAction = act, CBActionOneBtn = actOneBtn }; if (MogoGlobleUIManager.Instance.m_goOKCancelBox != null && MogoGlobleUIManager.Instance.m_goOKCancelBox.gameObject.activeSelf) { m_listBox.Add(unit); Mogo.Util.LoggerHelper.Debug("Adding into OKCancel Box Queue"); } else { unit.JustDoIt(); } }