Merge branch 'master' of ooftooft.net:Racesm

# Conflicts:
#	Assets/ML-Agents/Timers/ForestRacetrack_timers.json.meta
#	Assets/ML-Agents/Timers/WinScreen_timers.json
This commit is contained in:
2024-04-26 10:25:49 +02:00
3 changed files with 12 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;
}
}