|
|
|
|
|
|
{ |
|
|
|
private const string DefineKey = "BoatAttack_Tests_ScriptingDefines"; |
|
|
|
private static float _oldTimeScale = 1.0f; // give default of 1 just in case
|
|
|
|
|
|
|
|
|
|
|
|
#if UNITY_EDITOR
|
|
|
|
public void Setup() |
|
|
|
{ |
|
|
|
// save current scription defines and set both STATIC_EVERYTHING and LWRP_DEBUG_STATIC_POSTFX
|
|
|
|
|
|
|
// run base graphics test setup
|
|
|
|
SetupGraphicsTestCases.Setup(); |
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
[UnityTest, Category("BoatAttack")] |
|
|
|
[UseGraphicsTestCases] |
|
|
|
public IEnumerator Run(GraphicsTestCase testCase) |
|
|
|
|
|
|
{ |
|
|
|
ResultsUtility.ExtractImagesFromTestProperties(TestContext.CurrentContext.Test); |
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
public void Cleanup() |
|
|
|
{ |
|
|
|
|
|
|
PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, EditorPrefs.GetString(DefineKey)); |
|
|
|
EditorPrefs.DeleteKey(DefineKey); |
|
|
|
} |
|
|
|
#endif
|
|
|
|
} |