32 lines
778 B
C#
32 lines
778 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace BlueWater
|
|
{
|
|
public class TycoonStatusUi : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private TMP_Text _bartenderCrewText;
|
|
|
|
[SerializeField]
|
|
private TMP_Text _serverCrewText;
|
|
|
|
[SerializeField]
|
|
private TMP_Text _cleanerCrewText;
|
|
|
|
private void Start()
|
|
{
|
|
UpdateUi(0, 0, 0);
|
|
|
|
EventManager.OnUpdateCrewUi += UpdateUi;
|
|
}
|
|
|
|
private void UpdateUi(int bartenderCount, int serverCount, int cleanerCount)
|
|
{
|
|
_bartenderCrewText.text = bartenderCount.ToString();
|
|
_serverCrewText.text = serverCount.ToString();
|
|
_cleanerCrewText.text = cleanerCount.ToString();
|
|
}
|
|
}
|
|
}
|