// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2021-01-08 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** namespace G.UI { public partial class RedeemBox : KUIWindow { public static void Show(System.Action callback) { OpenWindow(callback); } #region Constructor public RedeemBox() : base(UILayer.kPopup, UIMode.kNone) { uiPath = "ui_common/ui_w_redeem.prefab"; } #endregion #region Field System.Collections.Generic.Dictionary _redeemMapper = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase) { { "shaoxia666","itcaz7na84mp" }, { "taibai666","n2vgxfehav29" }, { "daxia666","itcaz7na84mp" }, { "daxia888","n2vgxfehav29" }, { "daxia2022","n2vgxfehav29" }, { "ohayoo2022","n2mk7iedcvas" }, }; #endregion #region Method private string ConvertCode(string code) { if (_redeemMapper.TryGetValue(code, out var result)) return result; else return code; } #endregion #region Unity /// /// /// public override void Awake() { InitView(); } /// /// /// public override void OnEnable() { RefreshView(); } #endregion } }