/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.DailyWelfare { public partial class UI_ProgressBar1 { public GProgressBar target; public UI_ComProBonus m_comProBonus0; public UI_ComProBonus m_comProBonus1; public UI_ComProBonus m_comProBonus2; public UI_ComProBonus m_comProBonus3; public UI_ComProBonus m_comProBonus4; public const string URL = "ui://t8nwuj7ifqor7"; public const string PACKAGE_NAME = "DailyWelfare"; public const string RES_NAME = "ProgressBar1"; private static UI_ProgressBar1 _proxy; public static UI_ProgressBar1 Create(GObject gObject = null) { var ui = new UI_ProgressBar1(); if(gObject == null) ui.target = (GProgressBar)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GProgressBar)gObject; ui.Init(ui.target); return ui; } public static UI_ProgressBar1 Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ProgressBar1(); } var ui = _proxy; if(gObject == null) ui.target = (GProgressBar)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GProgressBar)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_comProBonus0 = (UI_ComProBonus)UI_ComProBonus.Create(comp.GetChild("comProBonus0")); m_comProBonus1 = (UI_ComProBonus)UI_ComProBonus.Create(comp.GetChild("comProBonus1")); m_comProBonus2 = (UI_ComProBonus)UI_ComProBonus.Create(comp.GetChild("comProBonus2")); m_comProBonus3 = (UI_ComProBonus)UI_ComProBonus.Create(comp.GetChild("comProBonus3")); m_comProBonus4 = (UI_ComProBonus)UI_ComProBonus.Create(comp.GetChild("comProBonus4")); } public void Dispose(bool disposeTarget = false) { m_comProBonus0.Dispose(); m_comProBonus0 = null; m_comProBonus1.Dispose(); m_comProBonus1 = null; m_comProBonus2.Dispose(); m_comProBonus2 = null; m_comProBonus3.Dispose(); m_comProBonus3 = null; m_comProBonus4.Dispose(); m_comProBonus4 = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }