void FixedUpdate() { if (!m_Running) { return; } m_Manager.Sync(); if (SampleExpired()) { var now = Time.time; var sample = m_Manager.Sample(); for (int i = 0; i < sample.Length; i++) { m_Report.AddSample(sample[i], now); } } if (m_Manager.Done()) { Debug.Log("Soak done!"); m_Running = false; m_Manager.Stop(); Log(); } m_Manager.Update(); }
void StopSoak() { m_Running = false; m_Manager.Stop(); }