Пример #1
0
        public void IsUnpaused_TimeScaleGreaterThanZero_False()
        {
            var priorTimeScale = Time.timeScale;

            Time.timeScale = 0.1f;

            Assert.IsTrue(PauseFunctions.IsGameUnpaused());

            Time.timeScale = priorTimeScale;
        }
Пример #2
0
        public void IsUnpaused_TimeScaleZero_True()
        {
            var priorTimeScale = Time.timeScale;

            Time.timeScale = 0.0f;

            Assert.IsFalse(PauseFunctions.IsGameUnpaused());

            Time.timeScale = priorTimeScale;
        }