mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
31 lines
703 B
C#
31 lines
703 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace UnityEditor.TestTools.TestRunner
|
|
{
|
|
internal class EditModeLauncherContextSettings : IDisposable
|
|
{
|
|
private bool m_RunInBackground;
|
|
|
|
public EditModeLauncherContextSettings()
|
|
{
|
|
SetupProjectParameters();
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
CleanupProjectParameters();
|
|
}
|
|
|
|
private void SetupProjectParameters()
|
|
{
|
|
m_RunInBackground = Application.runInBackground;
|
|
Application.runInBackground = true;
|
|
}
|
|
|
|
private void CleanupProjectParameters()
|
|
{
|
|
Application.runInBackground = m_RunInBackground;
|
|
}
|
|
}
|
|
}
|