Exemple #1
0
        public void AfterTest()
        {
            UnityEngine.Time.timeScale = _priorTimeScale;

            _otherListener = null;
            _listener      = null;

            _timeService = null;
        }
Exemple #2
0
        public void BeforeTest()
        {
            _timeService = new TimeService();

            _listener      = new GameObject().AddComponent <MockPauseListenerComponent>();
            _otherListener = new GameObject().AddComponent <MockPauseListenerComponent>();

            _priorTimeScale = UnityEngine.Time.timeScale;
        }