Sachn
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user