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
363 B
19 lines
363 B
using UnityEngine; |
|
|
|
[RequireComponent(typeof(Renderer))] |
|
public class TOD_RenderAtDay : MonoBehaviour |
|
{ |
|
private Renderer rendererComponent; |
|
|
|
protected void Start() |
|
{ |
|
rendererComponent = GetComponent<Renderer>(); |
|
|
|
rendererComponent.enabled = TOD_Sky.Instance.IsDay; |
|
} |
|
|
|
protected void Update() |
|
{ |
|
rendererComponent.enabled = TOD_Sky.Instance.IsDay; |
|
} |
|
}
|
|
|