public void AfterTest() { _farSpawnLocation = null; _spawnLocation = null; _spawnService = null; }
public void BeforeTest() { _spawnService = new SpawnService(); _spawnLocation = new GameObject().AddComponent <MockSpawnLocationComponent>(); _spawnLocation.GetSpawnLocationResult = _spawnLocation.gameObject.transform; _spawnLocation.gameObject.transform.position = new Vector3(1.0f, 2.0f, 3.0f); _farSpawnLocation = new GameObject().AddComponent <MockSpawnLocationComponent>(); _farSpawnLocation.GetSpawnLocationResult = _farSpawnLocation.gameObject.transform; _farSpawnLocation.gameObject.transform.position = new Vector3(1000.0f, 2000.0f, 3000.0f); }