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

18 lines
360 B
C#
Raw Normal View History

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