void TestSpawns() { //TODO: Check if nothing has changed? pointSpawner.DisableAllPoints(); var anchors = anchorPool.GetActiveObjects(); foreach (var anchor in anchors) { anchor.ParentWallToLevel(); } var spawns = spawnTester.GetValidSpawnLocations(); foreach (var spawn in spawns) { Point p = pointSpawner.GetGamePoint(pointPrefab); p.transform.position = spawn; p.gameObject.SetActive(true); } foreach (var anchor in anchors) { anchor.ParentWallToAnchor(); } spawnsShowing = true; }
void SpawnPoint() { Point p = pointSpawner.GetGamePoint(pointToSpawn); Vector2 newLoc = GetRandomLocation(); p.transform.position = newLoc; p.gameObject.SetActive(true); currentPoint = p; }