Exemplo n.º 1
0
        private static void OnInitialize()
        {
            var settings = BuildScript.GetSettings();

            if (settings.localServer)
            {
                bool isRunning = LaunchLocalServer.IsRunning();
                if (!isRunning)
                {
                    LaunchLocalServer.Run();
                }
            }
            else
            {
                bool isRunning = LaunchLocalServer.IsRunning();
                if (isRunning)
                {
                    LaunchLocalServer.KillRunningAssetBundleServer();
                }
            }
            Utility.dataPath            = System.Environment.CurrentDirectory;
            Utility.downloadURL         = BuildScript.GetManifest().downloadURL;
            Utility.assetBundleMode     = settings.runtimeMode;
            Utility.getPlatformDelegate = BuildScript.GetPlatformName;
            Utility.loadDelegate        = AssetDatabase.LoadAssetAtPath;
            assetRootPath = settings.assetRootPath;
        }
Exemplo n.º 2
0
 private static void OnInitialize()
 {
     EditorUtility.ClearProgressBar();
     if (AppConst.isLocalServer)
     {
         bool isRunning = LaunchLocalServer.IsRunning();
         if (!isRunning)
         {
             LaunchLocalServer.Run();
         }
     }
     else
     {
         bool isRunning = LaunchLocalServer.IsRunning();
         if (isRunning)
         {
             LaunchLocalServer.KillRunningAssetBundleServer();
         }
     }
     Utility.dataPath            = System.Environment.CurrentDirectory;
     Utility.downloadURL         = BuildScript.GetManifest().downloadURL;
     Utility.assetBundleMode     = AppConst.SimulateMode;
     Utility.getPlatformDelegate = BuildScript.GetPlatformName;
     Utility.loadDelegate        = AssetDatabase.LoadAssetAtPath;
 }