Merge branch 'master' of git@ooftooft.net:Racesm.git

This commit is contained in:
magn9775
2024-04-26 10:23:52 +02:00
2 changed files with 4 additions and 6 deletions

View File

@@ -29,13 +29,15 @@ public class TimeOfDay : MonoBehaviour
RenderSettings.skybox = DaySkybox;
DayLight.SetActive(true);
skyboxMaterial = "Day";
TellTime.text = "Selected time of day: \n" + skyboxMaterial;
}
public void ChangeToNightTime()
{
DayLight.SetActive(false);
RenderSettings.skybox = NightSkybox;
NightLight.SetActive(true);
skyboxMaterial = "Night"; ;
skyboxMaterial = "Night";
TellTime.text = "Selected time of day: \n" + skyboxMaterial;
}
private void Awake()
{
@@ -44,8 +46,4 @@ public class TimeOfDay : MonoBehaviour
DisableAllLights();
ChangeToNightTime();
}
private void Update()
{
TellTime.text = "Selected time of day: \n" + skyboxMaterial;
}
}