void Update() { if (!_testLabManager.IsTestingScenario) { return; } switch (_testLabManager.ScenarioNumber) { case BootTimeTest: _testLabManager.LogToResults("Time to boot: " + Time.realtimeSinceStartup + "\n"); _testLabManager.NotifyHarnessTestIsComplete(); break; case FrameRateAfterOneSecondTest: CheckFramerate(1.0f); break; case FrameRateAfterThreeSecondsTest: CheckFramerate(3.0f); break; default: throw new ArgumentOutOfRangeException(); } }
private void CloseTesting() { if (!(Time.time > 11.0f)) { return; } bool done = true; for (int i = 0; i < fNumber; i++) { if (StopArray[i] == false) { done = false; } } if (done) { _testLabManager.NotifyHarnessTestIsComplete(); isTestingInEditor = false; // GetComponent<UIController>().Load(); } }