public static UILoginButton CreateInstance() { UIPackage.AddPackage(UIPathTools.CombineMainPackagePath(PackageName)); BindPackageItemExtension(); object gObject = UIPackage.CreateObjectFromURL(URL); if (gObject is UILoginButton) { return(gObject as UILoginButton); } else { UnityEngine.Debug.LogError(" Init Faild !!!PackageName:" + PackageName + " ResName : " + ResName); return(null); } }
internal static void DisposeInstance() { UIPackage.RemovePackage(UIPathTools.CombineMainPackagePath(PackageName)); }