PlayerAction.GetEffectSpawnLocationsFromResourceTiles C# (CSharp) Method

GetEffectSpawnLocationsFromResourceTiles() protected method

Gets the effect spawn locations from resource tiles.
protected GetEffectSpawnLocationsFromResourceTiles ( ResourceTileSelection, selection ) : Vector3[]
selection ResourceTileSelection, /// Tiles. ///
return Vector3[]
	protected Vector3[] GetEffectSpawnLocationsFromResourceTiles(ResourceTileSelection selection)
	{
		System.Collections.Generic.List<Vector3> spawnLocations = new System.Collections.Generic.List<Vector3>();
		TerrainManager.Status status = TerrainManager.Status.Failed;
		foreach (ResourceTileLite tile in TerrainManager.GetResourceTileCacheGroup(out status, selection.resource_tile_ids.ToArray())) {
			spawnLocations.Add(tile.GetCenterPoint());
		}
		return spawnLocations.ToArray();
	}