Ejemplo n.º 1
0
        private static bool InstallVersion(UnityHub unityHub, string version, string changeset)
        {
            var(success, output) = unityHub.Install(version, changeset);
            if (success)
            {
                Logger.Info("Installations was successful");
            }
            else
            {
                Logger.Error("Installation failed");
            }

            if (output == null)
            {
                Environment.ExitCode = 1;
                return(false);
            }

            if (output.Contains("No editor version matched") && changeset == null)
            {
                Logger.Info("You might also need to pass the 'changeset' option");
            }

            Environment.ExitCode = success ? 0 : 1;
            return(success);
        }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     UnityHub.Install(this);
     UnityHub.Instance.StartCothread(Runtest(), this.gameObject);
 }
Ejemplo n.º 3
0
 public void Start()
 {
     UnityHub.Install(this);
 }
Ejemplo n.º 4
0
 public void Start()
 {
     hub = UnityHub.Install(null);
 }