LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/animatedSun.cs

24 lines
425 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
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()
{
}
}