| | |
| | | using TMPro; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using static UnityEditor.Progress; |
| | | |
| | | public enum ItemUIType |
| | | { |
| | |
| | | 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; |