Ejemplo n.º 1
0
		/// <summary>
		/// Run a console script.
		/// </summary>
		public static string Get2(params string[] args)
		{	
#if GET2
			if (args.Length != 1)
			{
				return ConsoleErrors.InvalidArgumentError;
			}
			
			if (GameObject.Find("ogc-dl.lock"))
			{
				return ConsoleErrors.LockFileError("ogc-dl.lock");
			}
			OGCDownloader downloader = new GameObject("ogc-dl.lock").AddComponent<OGCDownloader>();
			downloader.StartDownload(args[0], false);
			return "Downloading: " + args[0];
#else
			return ConsoleErrors.CommandExecutionError;
#endif
		}