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.
19 lines
369 B
19 lines
369 B
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; |
|
} |
|
}
|
|
|