18 lines
531 B
C#
Raw Normal View History

2022-05-01 12:26:17 +01:00
using QSB.Messaging;
using QSB.WorldSync;
using System.Linq;
namespace QSB.EchoesOfTheEye.Prisoner.Messages;
internal class EnterLightsOutMessage : QSBMessage
{
public override void OnReceiveRemote()
{
2022-05-03 08:48:24 +01:00
var director = QSBWorldSync.GetUnityObject<PrisonerDirector>();
2022-05-01 12:26:17 +01:00
director._lightsOutTrigger.OnEntry -= director.OnEnterLightsOutTrigger;
director._prisonLighting.FadeTo(0, 1);
director._hangingLampSource.PlayOneShot(AudioType.Candle_Extinguish, 1f);
director._lightsOnAudioVolume.SetVolumeActivation(false);
}
}