added tooltips

This commit is contained in:
Vladimir Koshevarov
2022-11-29 19:09:00 +02:00
parent 2167b43c29
commit 73f06d8754
33 changed files with 1264 additions and 250 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using static GameManager;
public class GameUIManager : MonoBehaviour
{
@@ -33,7 +34,7 @@ public class GameUIManager : MonoBehaviour
// Update is called once per frame
void Update()
{
_moneyText.text = $"${_playerController.money.Value}";
_moneyText.text = $"${_playerController.PlayerStats[StatsId.Money].Value}";
}
@@ -45,7 +46,7 @@ public class GameUIManager : MonoBehaviour
_timeText.text = TimeManager.CurrentTime.ToString(@"hh\:mm");
}
_energy.value = _playerController.energy.Value;
_food.value = _playerController.food.Value;
_energy.value = (float)_playerController.PlayerStats[StatsId.Energy].Value;
_food.value = (float)_playerController.PlayerStats[StatsId.Food].Value;
}
}