using ET; using FairyGUI; using UI.CommonGame; using UnityEngine; namespace GFGGame { public class RuleView : BaseWindow { private UI_RuleUI _ui; private string _title; private string _content; public override void Dispose() { if (_ui != null) { _ui.Dispose(); _ui = null; } base.Dispose(); } protected override void OnInit() { base.OnInit(); packageName = UI_RuleUI.PACKAGE_NAME; _ui = UI_RuleUI.Create(); this.viewCom = _ui.target; this.viewCom.Center(); this.modal = true; viewAnimationType = EnumViewAnimationType.ZOOM_CENTER; } protected override void AddEventListener() { base.AddEventListener(); } protected override void OnShown() { base.OnShown(); this._title = (this.viewData as object[])[0].ToString(); this._content = (this.viewData as object[])[1].ToString(); this._ui.m_txtTitle.text = _title; this._ui.m_txtContent.text = _content; } protected override void OnHide() { base.OnHide(); } protected override void RemoveEventListener() { base.RemoveEventListener(); } } }