public void AfterTest() { UnityEngine.Time.timeScale = _priorTimeScale; _otherListener = null; _listener = null; _timeService = null; }
public void BeforeTest() { _timeService = new TimeService(); _listener = new GameObject().AddComponent <MockPauseListenerComponent>(); _otherListener = new GameObject().AddComponent <MockPauseListenerComponent>(); _priorTimeScale = UnityEngine.Time.timeScale; }