Map selector done
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user