Added more accesability text
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user