Этот интерфейс... Добавил инструменты и заготовки
This commit is contained in:
1 parent
37f5d15410
commit
09219d9091
52 files changed
+6319
-47
No files matched your search
@@ -1,17 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.UI
|
||||
{
|
||||
public class Dispatcher : MonoBehaviour
|
||||
{
|
||||
public void Show()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Hide()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da44ad1c93f34423a3edfea9d6c2b688
|
||||
timeCreated: 1761951417
|
||||
@@ -1,15 +1,24 @@
|
||||
using Code.Gameplay.Player;
|
||||
using DG.Tweening;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Code.UI
|
||||
{
|
||||
public class GameplayPanel : UIElement
|
||||
{
|
||||
[SerializeField] private Dispatcher dispatcher;
|
||||
[Header("Dispatcher")]
|
||||
[SerializeField] private Image dispatcher;
|
||||
[SerializeField] private RectTransform dispatcherHiddenPosition;
|
||||
[SerializeField] private RectTransform dispatcherShownPosition;
|
||||
[SerializeField] private float dispatcherTransitionTime = 0.5f;
|
||||
[Header("Timer")]
|
||||
[SerializeField] private TMP_Text timer;
|
||||
[Header("HealthBar")]
|
||||
[SerializeField] private Image healthBar;
|
||||
[Header("MoneyBar")]
|
||||
[SerializeField] private TMP_Text moneyText;
|
||||
|
||||
private void MoneyUpdate(int count, int money)
|
||||
@@ -40,12 +49,12 @@ namespace Code.UI
|
||||
public void SummonDispatcher()
|
||||
{
|
||||
// TODO
|
||||
dispatcher.Show();
|
||||
dispatcher.transform.DOMoveX(dispatcherShownPosition.position.x, dispatcherTransitionTime);
|
||||
}
|
||||
public void CloseDispatcher()
|
||||
{
|
||||
// TODO
|
||||
dispatcher.Hide();
|
||||
dispatcher.transform.DOMoveX(dispatcherHiddenPosition.position.x, dispatcherTransitionTime);
|
||||
// TODO
|
||||
}
|
||||
public override void Hide()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user