mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-16 16:15:24 +00:00
18 lines
531 B
C#
18 lines
531 B
C#
using QSB.Messaging;
|
|
using QSB.WorldSync;
|
|
using System.Linq;
|
|
|
|
namespace QSB.EchoesOfTheEye.Prisoner.Messages;
|
|
|
|
internal class EnterLightsOutMessage : QSBMessage
|
|
{
|
|
public override void OnReceiveRemote()
|
|
{
|
|
var director = QSBWorldSync.GetUnityObject<PrisonerDirector>();
|
|
director._lightsOutTrigger.OnEntry -= director.OnEnterLightsOutTrigger;
|
|
director._prisonLighting.FadeTo(0, 1);
|
|
director._hangingLampSource.PlayOneShot(AudioType.Candle_Extinguish, 1f);
|
|
director._lightsOnAudioVolume.SetVolumeActivation(false);
|
|
}
|
|
}
|