/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.FieldWork { public partial class UI_ComCard { public GComponent target; public Controller m_c1; public UI_ComCardMask m_comCard; public GLoader m_loaScore; public GLoader m_loaRarity; public GTextField m_wearRateText; public GTextField m_txtCardName; public const string URL = "ui://efym480mo8tw18"; public const string PACKAGE_NAME = "FieldWork"; public const string RES_NAME = "ComCard"; private static UI_ComCard _proxy; public static UI_ComCard Create(GObject gObject = null) { var ui = new UI_ComCard(); 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_ComCard Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ComCard(); } 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_comCard = (UI_ComCardMask)UI_ComCardMask.Create(comp.GetChild("comCard")); m_loaScore = (GLoader)comp.GetChild("loaScore"); m_loaRarity = (GLoader)comp.GetChild("loaRarity"); m_wearRateText = (GTextField)comp.GetChild("wearRateText"); m_txtCardName = (GTextField)comp.GetChild("txtCardName"); } public void Dispose(bool disposeTarget = false) { m_c1 = null; m_comCard.Dispose(); m_comCard = null; m_loaScore = null; m_loaRarity = null; m_wearRateText = null; m_txtCardName = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }