/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Main { public partial class UI_ActivityStoryChapterUI { public GComponent target; public Controller m_activityID; public GLoader m_loaBg; public GGraph m_bgEffect; public UI_CompChapter m_chapter; public GComponent m_valueBar; public GButton m_btnBack; public GTextField m_txtTime; public Transition m_t0; public const string URL = "ui://mfvz4q8kpllz9fys"; public const string PACKAGE_NAME = "Main"; public const string RES_NAME = "ActivityStoryChapterUI"; private static UI_ActivityStoryChapterUI _proxy; public static UI_ActivityStoryChapterUI Create(GObject gObject = null) { var ui = new UI_ActivityStoryChapterUI(); 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_ActivityStoryChapterUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ActivityStoryChapterUI(); } 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_activityID = comp.GetController("activityID"); m_loaBg = (GLoader)comp.GetChild("loaBg"); m_bgEffect = (GGraph)comp.GetChild("bgEffect"); m_chapter = (UI_CompChapter)UI_CompChapter.Create(comp.GetChild("chapter")); m_valueBar = (GComponent)comp.GetChild("valueBar"); m_btnBack = (GButton)comp.GetChild("btnBack"); m_txtTime = (GTextField)comp.GetChild("txtTime"); m_t0 = comp.GetTransition("t0"); } public void Dispose(bool disposeTarget = false) { m_activityID = null; m_loaBg = null; m_bgEffect = null; m_chapter.Dispose(); m_chapter = null; m_valueBar = null; m_btnBack = null; m_txtTime = null; m_t0 = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }