Ejemplo n.º 1
0
        private static void SetLicenseKeyFromFromCommandLineParam()
        {
            string licenseKeyInGlobalConfiguration;

            if (ProjectParser.GetKeyFromCommandLine(out licenseKeyInGlobalConfiguration))
            {
                ProjectParser.SetLicenseKeyInGlobalConfiguration(licenseKeyInGlobalConfiguration);
                return;
            }
            Debug.LogError("License key was not correctly specified via command line");
        }
Ejemplo n.º 2
0
        private static List <string> GetScenesInDirectory(string root)
        {
            List <string> list = new List <string>();

            string[] array = null;
            try
            {
                array = Directory.GetFiles(root);
            }
            catch (UnauthorizedAccessException arg_11_0)
            {
                Debug.LogWarning(arg_11_0.Message);
            }
            catch (DirectoryNotFoundException arg_1D_0)
            {
                Debug.LogWarning(arg_1D_0.Message);
            }
            if (array != null)
            {
                string[] array2 = array;
                for (int i = 0; i < array2.Length; i++)
                {
                    string text = array2[i];
                    if (string.Compare(ProjectParser.StripExtensionFromPath(text), "unity", true) == 0)
                    {
                        list.Add(text);
                    }
                }
                array2 = Directory.GetDirectories(root);
                for (int i = 0; i < array2.Length; i++)
                {
                    string root2 = array2[i];
                    list.AddRange(ProjectParser.GetScenesInDirectory(root2));
                }
            }
            list.Sort();
            return(list);
        }