Added more accesability text

This commit is contained in:
2026-03-20 12:54:22 +00:00
parent c422859ece
commit 58a293c3e1
2 changed files with 91 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
using UnityEngine;
using UnityEngine.UI;
namespace InterfaceOff.WorldScene
{
@@ -7,11 +8,14 @@ namespace InterfaceOff.WorldScene
public Transform HealthBarObject;
public WindowSpawner Spawner;
public LifeThingTrackerThing Thing;
public Text Helajkghfjkhgdfjk;
public int Health { get; private set; }
private void Update()
{
Helajkghfjkhgdfjk.text = $"Health: {Health}";
Health = ((20 - Thing.HitsTaken) - Spawner.SpawnedWindowCount);
float scale = Mathf.Clamp(Health * 5f, 0f, Mathf.Infinity);