Экран смерти, смерть, бабки, Интерфейс, Шлюхи
This commit is contained in:
1 parent
edf3821c0d
commit
019da8cfd3
16 files changed
+278
-60
No files matched your search
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Code.UI
|
||||
{
|
||||
public class GameOverPanel : UIElement
|
||||
{
|
||||
[SerializeField] private Image _background;
|
||||
|
||||
public void Hide()
|
||||
{
|
||||
_background.enabled = false;
|
||||
}
|
||||
public void Show()
|
||||
{
|
||||
_background.enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ecbe291069244405ac22e5470f3ba62b
|
||||
timeCreated: 1761948692
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 271d8609b0d94575a2e61c48d3b46d63
|
||||
timeCreated: 1761917025
|
||||
@@ -1,18 +0,0 @@
|
||||
using Code.Gameplay.Player;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Code.UI.GameplayElements
|
||||
{
|
||||
public class HealthBar : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Image healthBar;
|
||||
|
||||
public void HealthUpdate(int count, PlayerHealth health)
|
||||
{
|
||||
// TODO Анимация потери
|
||||
float fillAmount = (float)health.HealthPoints / health.MaxHealthPoints;
|
||||
healthBar.fillAmount = fillAmount;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ddb267271c834c6697caff23709d30a2
|
||||
timeCreated: 1761917038
|
||||
@@ -1,16 +0,0 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.UI.GameplayElements
|
||||
{
|
||||
public class MoneyBar : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private TMP_Text moneyText;
|
||||
|
||||
public void MoneyUpdate(int count, int money)
|
||||
{
|
||||
// TODO Анимация получения\потери
|
||||
moneyText.text = money.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 02373b82fefd4812ac1d6d97d65fc9f0
|
||||
timeCreated: 1761917491
|
||||
@@ -1,5 +1,4 @@
|
||||
using Code.Gameplay.Player;
|
||||
using Code.UI.GameplayElements;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using Code.UI.GameplayElements;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.UI
|
||||
|
||||
Reference in new issue
Block a user