Первый коммит

This commit is contained in:
2024-04-20 11:16:35 +03:00
parent 284e0891d9
commit 2452b24ee5
5427 changed files with 4562744 additions and 0 deletions

View File

@ -0,0 +1,38 @@
using TMPro;
using UnityEngine;
public class ScriptMenuChangeTime : MonoBehaviour
{
private TextMeshProUGUI text;
private void Awake()
{
text = gameObject.GetComponentInChildren<TextMeshProUGUI>();
}
private void Start()
{
if (GameSetting.isNight)
{
text.text = "Night";
}
else
{
text.text = "Day";
}
}
public void ChageNumberChangeTime()
{
if (GameSetting.isNight)
{
GameSetting.isNight = true;
text.text = "Night";
}
else
{
GameSetting.isNight = false;
text.text = "Day";
}
}
}