public void IsUnpaused_TimeScaleGreaterThanZero_False() { var priorTimeScale = Time.timeScale; Time.timeScale = 0.1f; Assert.IsTrue(PauseFunctions.IsGameUnpaused()); Time.timeScale = priorTimeScale; }
public void IsUnpaused_TimeScaleZero_True() { var priorTimeScale = Time.timeScale; Time.timeScale = 0.0f; Assert.IsFalse(PauseFunctions.IsGameUnpaused()); Time.timeScale = priorTimeScale; }