You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
369 B
20 lines
369 B
2 years ago
|
using UnityEngine;
|
||
|
|
||
|
[RequireComponent(typeof(Renderer))]
|
||
|
public class TOD_RenderAtNight : MonoBehaviour
|
||
|
{
|
||
|
private Renderer rendererComponent;
|
||
|
|
||
|
protected void Start()
|
||
|
{
|
||
|
rendererComponent = GetComponent<Renderer>();
|
||
|
|
||
|
rendererComponent.enabled = TOD_Sky.Instance.IsNight;
|
||
|
}
|
||
|
|
||
|
protected void Update()
|
||
|
{
|
||
|
rendererComponent.enabled = TOD_Sky.Instance.IsNight;
|
||
|
}
|
||
|
}
|