/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Share { public partial class UI_ShareUI { public GComponent target; public GGraph m_mask; public GImage m_icon; public GLoader m_CRCodeIcon; public GButton m_btnShare; public GButton m_btnShareWX; public GButton m_btnShareWB; public GGroup m_shareGrade; public GButton m_btnClose; public const string URL = "ui://1f45z9smxfki0"; public const string PACKAGE_NAME = "Share"; public const string RES_NAME = "ShareUI"; private static UI_ShareUI _proxy; public static UI_ShareUI Create(GObject gObject = null) { var ui = new UI_ShareUI(); 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_ShareUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ShareUI(); } 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_mask = (GGraph)comp.GetChild("mask"); m_icon = (GImage)comp.GetChild("icon"); m_CRCodeIcon = (GLoader)comp.GetChild("CRCodeIcon"); m_btnShare = (GButton)comp.GetChild("btnShare"); m_btnShareWX = (GButton)comp.GetChild("btnShareWX"); m_btnShareWB = (GButton)comp.GetChild("btnShareWB"); m_shareGrade = (GGroup)comp.GetChild("shareGrade"); m_btnClose = (GButton)comp.GetChild("btnClose"); } public void Dispose(bool disposeTarget = false) { m_mask = null; m_icon = null; m_CRCodeIcon = null; m_btnShare = null; m_btnShareWX = null; m_btnShareWB = null; m_shareGrade = null; m_btnClose = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }