void BtnSelect_OnClickEventHandler(UIButton sender) { BlackScienceChoWnd bsWnd = WndManager.FindDialog <BlackScienceChoWnd>(); if (bsWnd) { bsWnd.SetSelectCaptain(m_caption); MyHead.Maskgo2.SetActive(true); } }
/// <summary> /// 黑科技 /// </summary> void BtnBlackScience_OnClickEventHandler(UIButton sender) { if (BlackScienceDC.CheckHaveCaption() == false) { NGUIUtil.ShowTipWndByKey(30000050); return; } BlackScienceChoWnd bsWnd = WndManager.GetDialog <BlackScienceChoWnd>(); ShipPlan P = ShipPlanDC.GetCurShipPlan(); CaptionInfo captionInfo = BlackScienceDC.GetCaptionD(P.BlackScienceID); bsWnd.SetSelectCaptain(captionInfo); }