This commit is contained in:
Simon Lübeß
2024-04-08 19:08:37 +02:00
parent 03c7dc8b9e
commit 9efd40b480
14 changed files with 1562 additions and 1959 deletions

View File

@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@ -26,6 +27,8 @@ public class DeveloperInfoUi : MonoBehaviour
[SerializeField]
private Gradient _statusGradient;
[SerializeField] private TextMeshProUGUI _fingerText;
void Start()
{
@ -39,5 +42,7 @@ public class DeveloperInfoUi : MonoBehaviour
_caffeineImage.color = _statusGradient.Evaluate((float)_developer.CurrentCaffeination);
_hungerImage.color = _statusGradient.Evaluate((float)_developer.CurrentHunger);
_toiletImage.color = _statusGradient.Evaluate((float)_developer.CurrentUrgeToUrinate);
_fingerText.text = _developer.FingersLeft.ToString();
}
}