From 884103d805270bd776b7a485d9431401c0c05594 Mon Sep 17 00:00:00 2001 From: miepzerino <o.skotnik@gmail.com> Date: Sun, 30 Mar 2025 18:50:13 +0000 Subject: [PATCH] #16 added ores to player inventory #14 show inventory in UI --- Assets/Scripts/GenerateTileMap.cs | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/GenerateTileMap.cs b/Assets/Scripts/GenerateTileMap.cs index 231f61a..7069661 100644 --- a/Assets/Scripts/GenerateTileMap.cs +++ b/Assets/Scripts/GenerateTileMap.cs @@ -32,9 +32,9 @@ 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; @@ -56,6 +56,8 @@ } SetSettingsFromSeed(seed.Value); + + transform.position = new Vector3((maxWidth / 2) * -1, (maxGroundHeight + 1) * -1, transform.position.z); } public void SetSettingsFromSeed(int seed) -- Gitblit v1.9.3