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