Initial commit
This commit is contained in:
18
Assets/Scripts/Age/AgingUI.cs
Normal file
18
Assets/Scripts/Age/AgingUI.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
|
||||
public class AgingUI : MonoBehaviour
|
||||
{
|
||||
public AgingController agingController;
|
||||
public TextMeshProUGUI ageText;
|
||||
public TextMeshProUGUI planetText;
|
||||
|
||||
void Update()
|
||||
{
|
||||
int age = Mathf.RoundToInt(agingController.currentAge);
|
||||
ageText.text = "Вік: " + age + " із 70 років";
|
||||
planetText.text = "На Землі пройшло: 70 років";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user