예제 #1
0
 static UnityBuildActions()
 {
     Settings  = new UnityEditorToolSettings();
     Arguments = new UnityEditorToolArguments();
     Arguments.BuildTargetExecutable = "Game";
     Arguments.BuildTargetPath       = "bin";
 }
예제 #2
0
 void Merge(UnityEditorToolSettings copy)
 {
     if (copy.RealTimeLog != null)
     {
         RealTimeLog = copy.RealTimeLog;
     }
     if (copy.ToolPath != null)
     {
         ToolPath = copy.ToolPath;
     }
     if (copy.ToolTimeout != null)
     {
         ToolTimeout = copy.ToolTimeout;
     }
     if (copy.WorkingDirectory != null)
     {
         WorkingDirectory = copy.WorkingDirectory;
     }
     if (copy.ArgumentCustomization != null)
     {
         ArgumentCustomization = copy.ArgumentCustomization;
     }
     if (copy.EnvironmentVariables != null)
     {
         if (EnvironmentVariables == null)
         {
             EnvironmentVariables = new Dictionary <string, string>(copy.EnvironmentVariables);
         }
         else
         {
             foreach (var pair in copy.EnvironmentVariables)
             {
                 EnvironmentVariables[pair.Key] = pair.Value;
             }
         }
     }
 }
예제 #3
0
 public UnityEditorToolSettings(UnityEditorToolSettings settings)
 {
     Merge(settings);
 }