protected override void OnOpen() { this.mCoinPos = new Vector3(((float)GameLogic.Width) / 2f, ((float)GameLogic.Height) / 2f, 0f); this.mDiamondPos = new Vector3(((float)GameLogic.Width) / 2f, ((float)GameLogic.Height) / 2f, 0f); this.mPool.Collect <PropOneEquip>(); IProxy proxy = Facade.Instance.RetrieveProxy("MailInfoProxy"); if (proxy == null) { SdkManager.Bugly_Report("MailInfoUICtrl", "MailInfoProxy is null."); this.OnClickClose(); } else if (proxy.Data == null) { SdkManager.Bugly_Report("MailInfoUICtrl", "MailInfoProxy.Data is null."); this.OnClickClose(); } else { this.mTranfer = proxy.Data as MailInfoProxy.Transfer; if (this.mTranfer == null) { SdkManager.Bugly_Report("MailInfoUICtrl", "MailInfoProxy.Data is not a [MailInfoProxy.Transfer] type."); this.OnClickClose(); } else { this.InitUI(); } } }
private void OnClickOpen(int index, MailOneCtrl one) { MailInfoProxy.Transfer data = new MailInfoProxy.Transfer { data = this.mList[index], ctrl = one }; Facade.Instance.RegisterProxy(new MailInfoProxy(data)); WindowUI.ShowWindow(WindowID.WindowID_MailInfo); }