Map selector done

This commit is contained in:
PokingPines
2024-04-26 10:07:16 +02:00
parent 8d3bee48dd
commit 50c949f0cb
10 changed files with 158 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ public class TimeOfDay : MonoBehaviour
public GameObject[] Lights;
public static TimeOfDay Instance;
public TextMeshProUGUI MainText;
public TextMeshProUGUI TellTime;
void DisableAllLights()
{
foreach (GameObject light in Lights)
@@ -42,10 +42,10 @@ public class TimeOfDay : MonoBehaviour
Instance = this;
DontDestroyOnLoad(gameObject);
DisableAllLights();
NightLight.SetActive(true);
ChangeToNightTime();
}
private void Update()
{
MainText.text = "Selected time of day: \n" + skyboxMaterial;
TellTime.text = "Selected time of day: \n" + skyboxMaterial;
}
}