LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/animatedSun.cs
2023-12-22 18:30:10 -05:00

23 lines
425 B
C#

using UnityEngine;
public class animatedSun : MonoBehaviour
{
public Light indirectLight;
public Light directLight;
private void Start()
{
TimeOfDay timeOfDay = Object.FindObjectOfType<TimeOfDay>();
if (timeOfDay != null)
{
timeOfDay.sunAnimator = base.gameObject.GetComponent<Animator>();
timeOfDay.sunIndirect = indirectLight;
timeOfDay.sunDirect = directLight;
}
}
private void Update()
{
}
}