using FairyGUI; using UI.Login; namespace GFGGame { public class SystemNoticeView : BaseWindow { private UI_NoticeUI _ui; public override void Dispose() { if (_ui != null) { _ui.Dispose(); _ui = null; } base.Dispose(); } protected override void OnInit() { base.OnInit(); packageName = UI_NoticeUI.PACKAGE_NAME; _ui = UI_NoticeUI.Create(); this.viewCom = _ui.target; this.viewCom.Center(); this.modal = true; } protected override void OnShown() { base.OnShown(); string title = (this.viewData as object[])[0].ToString(); string content = (this.viewData as object[])[1].ToString(); _ui.m_txtTitle.text = title; _ui.m_comContent.m_txtContent.text = content; } protected override void OnHide() { base.OnHide(); } } }