Fixed small issues found in playtesting
This commit is contained in:
@@ -7,11 +7,13 @@ namespace InterfaceOff.WorldScene
|
||||
public Transform HealthBarObject;
|
||||
public WindowSpawner Spawner;
|
||||
public LifeThingTrackerThing Thing;
|
||||
|
||||
|
||||
public int Health { get; private set; }
|
||||
|
||||
private void Update()
|
||||
{
|
||||
float scale = ((20 - Thing.HitsTaken) - Spawner.SpawnedWindowCount) * 5f;
|
||||
scale = Mathf.Clamp(scale, 0f, Mathf.Infinity);
|
||||
Health = ((20 - Thing.HitsTaken) - Spawner.SpawnedWindowCount);
|
||||
float scale = Mathf.Clamp(Health * 5f, 0f, Mathf.Infinity);
|
||||
|
||||
if (!Spawner.AutoSpawn)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user