| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | 
							- using System.Collections;
 
- using UnityEngine;
 
- using UI.RoleInfo;
 
- namespace GFGGame
 
- {
 
-     /// <summary>
 
-     /// 兑换码输入界面
 
-     /// </summary>
 
-     public class InputGiftCodeView : BaseWindow
 
-     {
 
-         private UI_InputGiftCodeUI _ui;
 
-         public override void Dispose()
 
-         {
 
-             if (_ui != null)
 
-             {
 
-                 _ui.Dispose();
 
-                 _ui = null;
 
-             }
 
-             base.Dispose();
 
-         }
 
-         protected override void OnInit()
 
-         {
 
-             base.OnInit();
 
-             packageName = UI_InputGiftCodeUI.PACKAGE_NAME;
 
-             _ui = UI_InputGiftCodeUI.Create();
 
-             this.viewCom = _ui.target;
 
-             this.viewCom.Center();
 
-             this.modal = true;
 
-             viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
 
-             _ui.m_btnSure.onClick.Add(OnClickBtnSure);
 
-         }
 
-         protected override void OnShown()
 
-         {
 
-             base.OnShown();
 
-             _ui.m_inputCode.text = "";
 
-         }
 
-         private async void OnClickBtnSure()
 
-         {
 
-             string code = _ui.m_inputCode.text;
 
-             if (string.IsNullOrEmpty(code))
 
-             {
 
-                 PromptController.Instance.ShowFloatTextPrompt("请输入兑换码");
 
-                 return;
 
-             }
 
-             bool result = await SettingSProxy.ReqGiftCodeCheck(code);
 
-             if (result)
 
-             {
 
-                 _ui.m_inputCode.text = "";
 
-             }
 
-         }
 
-     }
 
- }
 
 
  |