private void Instantiate(RoadDefinition roadDefinition, Vector3 position) { Instantiate(roadDefinition.Prefab, position, Quaternion.AngleAxis(roadDefinition.OrientationInDegrees, Vector3.up)); }
private void Instantiate(RoadDefinition roadDefinition, Vector3 position) { var transformedPosition = position + new Vector3(TileRadius / 2, 0.01f, TileRadius / 2); tileInstances[position] = Instantiate(roadDefinition.Prefab, transformedPosition, Quaternion.AngleAxis(roadDefinition.OrientationInDegrees, Vector3.up)); }