From 18e2f5b45ab0be301f0973b8cf6df714c2d05f7c Mon Sep 17 00:00:00 2001
From: miepzerino <o.skotnik@gmail.com>
Date: Fri, 04 Apr 2025 18:43:10 +0000
Subject: [PATCH] #37 set background to character position on load
---
Assets/Scripts/Inventory/ItemUIScript.cs | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/Assets/Scripts/Inventory/ItemUIScript.cs b/Assets/Scripts/Inventory/ItemUIScript.cs
index 4f9f49b..e45c7ca 100644
--- a/Assets/Scripts/Inventory/ItemUIScript.cs
+++ b/Assets/Scripts/Inventory/ItemUIScript.cs
@@ -5,7 +5,6 @@
using TMPro;
using UnityEngine;
using UnityEngine.UI;
-using static UnityEditor.Progress;
public enum ItemUIType
{
@@ -42,10 +41,8 @@
description += $"\n<b>Generation</b>";
foreach (var variant in variants)
{
- if (variant.maxHeight > 0 || variant.minHeight > 0)
- {
- description += $"\nSpawns between Y: {variant.minHeight} - {variant.maxHeight}. Amount: {variant.dropRange}";
- }
+ description += $"\nLocation\tY: {variant.maxHeight} to {variant.minHeight}";
+ description += $"\n\tAmount: {variant.dropRange.ToRangeString()}";
}
}
gameObject.transform.Find("ItemTextDescription").GetComponent<TextMeshProUGUI>().text = description;
--
Gitblit v1.10.0