| | |
| | | public class GenerateTileMap : MonoBehaviour |
| | | { |
| | | public int? seed; |
| | | public int maxWidth = 256; |
| | | public int maxHeight = 384; |
| | | public int maxGroundHeight = 256; |
| | | public static int maxWidth = 256; |
| | | public static int maxHeight = 384; |
| | | public static int maxGroundHeight = 256; |
| | | private float scale; |
| | | private float offsetX; |
| | | private float offsetY; |
| | |
| | | } |
| | | |
| | | SetSettingsFromSeed(seed.Value); |
| | | |
| | | transform.position = new Vector3((maxWidth / 2) * -1, (maxGroundHeight + 1) * -1, transform.position.z); |
| | | } |
| | | |
| | | public void SetSettingsFromSeed(int seed) |