improve Highlight
This commit is contained in:
@@ -20,10 +20,10 @@ public class TopBarUI : MonoBehaviour
|
||||
[SerializeField]
|
||||
public Slider _food;
|
||||
|
||||
|
||||
// Start is called before the first frame update
|
||||
private void Start()
|
||||
private void Awake()
|
||||
{
|
||||
GameManager.Instance.Time.OnMinuteChanged -= UpdateTime;
|
||||
GameManager.Instance.Time.OnMinuteChanged += UpdateTime;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ public class TopBarUI : MonoBehaviour
|
||||
{
|
||||
_moneyText.text = $"${(Player.Instance.Stats[StatsId.Money] as INumericStat).Value}";
|
||||
_locationText.text= $"{(Player.Instance.Stats[StatsId.LocationName] as IStringStat).Value}";
|
||||
|
||||
}
|
||||
|
||||
private void UpdateTime()
|
||||
|
||||
Reference in New Issue
Block a user