/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Task { public partial class UI_BattlePassRewardItem { public GComponent target; public Controller m_c1; public Controller m_c2; public UI_RewardIconBlue m_NormalReward; public GButton m_ComeBt; public GButton m_GetRewardBt; public GButton m_HadGet; public GButton m_ContinueBt; public GTextField m_Level; public GList m_RewardList; public const string URL = "ui://5mpsibzznd173u"; public const string PACKAGE_NAME = "Task"; public const string RES_NAME = "BattlePassRewardItem"; private static UI_BattlePassRewardItem _proxy; public static UI_BattlePassRewardItem Create(GObject gObject = null) { var ui = new UI_BattlePassRewardItem(); if(gObject == null) ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GComponent)gObject; ui.Init(ui.target); return ui; } public static UI_BattlePassRewardItem Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_BattlePassRewardItem(); } var ui = _proxy; if(gObject == null) ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GComponent)gObject; ui.Init(ui.target); return ui; } public static void ProxyEnd() { if (_proxy != null) { _proxy.Dispose(); } } public static void ClearProxy() { ProxyEnd(); _proxy = null; } private void Init(GComponent comp) { m_c1 = comp.GetController("c1"); m_c2 = comp.GetController("c2"); m_NormalReward = (UI_RewardIconBlue)UI_RewardIconBlue.Create(comp.GetChild("NormalReward")); m_ComeBt = (GButton)comp.GetChild("ComeBt"); m_GetRewardBt = (GButton)comp.GetChild("GetRewardBt"); m_HadGet = (GButton)comp.GetChild("HadGet"); m_ContinueBt = (GButton)comp.GetChild("ContinueBt"); m_Level = (GTextField)comp.GetChild("Level"); m_RewardList = (GList)comp.GetChild("RewardList"); } public void Dispose(bool disposeTarget = false) { m_c1 = null; m_c2 = null; m_NormalReward.Dispose(); m_NormalReward = null; m_ComeBt = null; m_GetRewardBt = null; m_HadGet = null; m_ContinueBt = null; m_Level = null; m_RewardList = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }