/// <summary> /// 获取窗口,从窗口根节点下一层获取,获取失败则创建窗口 /// </summary> /// <typeparam name="T">窗口实现类</typeparam> /// <param name="strDialogIDD">strDialogIDD 窗口ID</param> /// <param name="parent">parent 父节点</param> /// <returns></returns> public static T GetDialog <T>() where T : WndBase { T Wnd = FindDialog <T>(); if (Wnd != null) { return(Wnd); } else { Wnd = WndManager.CreateDialog <T>(WndManager.GetWndRoot().transform); return(Wnd); } }