Merge branch 'master' of git@ooftooft.net:Racesm.git
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user