示例#1
0
 static void CoreTest_RepositoryLocation()
 {
     VersionControl.GetRepositoryLocation(
         (sender, e) =>
         EditorUtility.DisplayDialog("Repository Location",
                                     VersionControl.ParseRepositoryLocation(((Process)sender).StandardOutput.ReadToEnd()), "Ok"));
 }
 static void OnRepositoryLocation(object sender, System.EventArgs e)
 {
     mGuiEnabled             = true;
     _runningLocationProcess = false;
     mRepositoryLocation     = VersionControl.ParseRepositoryLocation(((Process)sender).StandardOutput.ReadToEnd());
     if (!string.IsNullOrEmpty(mRepositoryLocation))
     {
         mRepositoryShortName = mRepositoryLocation.Substring(mRepositoryLocation.LastIndexOf(System.IO.Path.DirectorySeparatorChar) + 1);
     }
 }