Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 internal static void DisposeInstance()
 {
     UIPackage.RemovePackage(UIPathTools.CombineMainPackagePath(PackageName));
 }