void OnEnable()
    {
        buildTarget = EditorUserBuildSettings.activeBuildTarget;
        channelType = PackageUtils.GetCurSelectedChannel();

        localServerType = PackageUtils.GetLocalServerType();
        localServerIP   = PackageUtils.GetLocalServerIP();
    }
    void OnEnable()
    {
        buildTarget = EditorUserBuildSettings.activeBuildTarget;
        channelType = PackageUtils.GetCurSelectedChannel();

        ReadLocalVersionFile(buildTarget, channelType);

        localServerType = PackageUtils.GetLocalServerType();
        localServerIP   = PackageUtils.GetLocalServerIP();

        androidBuildABForPerChannel = PackageUtils.GetAndroidBuildABForPerChannelSetting();
        iosBuildABForPerChannel     = PackageUtils.GetIOSBuildABForPerChannelSetting();
    }
Beispiel #3
0
    void OnEnable()
    {
        buildTarget = EditorUserBuildSettings.activeBuildTarget;
        channelType = PackageUtils.GetCurSelectedChannel();

        resVersion    = ReadResVersionConfig();
        bundleVersion = PlayerSettings.bundleVersion;

        localServerType = PackageUtils.GetLocalServerType();
        localServerIP   = PackageUtils.GetLocalServerIP();

        androidBuildABForPerChannel = PackageUtils.GetAndroidBuildABForPerChannelSetting();
        iosBuildABForPerChannel     = PackageUtils.GetIOSBuildABForPerChannelSetting();
    }
Beispiel #4
0
        public static string GetAssetBundleServerURL()
        {
            string ip          = PackageUtils.GetLocalServerIP();
            string address     = PackageUtils.GetServerAddressByType(PackageUtils.GetLocalServerType());
            string downloadURL = null;

            if (PackageUtils.UseHTTPsServer())
            {
                downloadURL = "https://" + ip + address;
            }
            else
            {
                downloadURL = "http://" + ip + address;
            }
            //downloadURL = downloadURL + PackageUtils.GetCurPlatformChannelRelativePath() + "/";
            return(downloadURL);
        }