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

17 lines
360 B
C#

using UnityEngine;
public class CozyLights : MonoBehaviour
{
private bool cozyLightsOn;
public Animator cozyLightsAnimator;
private void Update()
{
if (!(StartOfRound.Instance == null) && StartOfRound.Instance.shipRoomLights.areLightsOn == cozyLightsOn)
{
cozyLightsOn = !cozyLightsOn;
cozyLightsAnimator.SetBool("on", cozyLightsOn);
}
}
}