19 lines
459 B
C#
19 lines
459 B
C#
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 ðîê³â";
|
|
}
|
|
}
|