mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 18:32:45 +00:00
20 lines
603 B
C#
20 lines
603 B
C#
using QSB.Messaging;
|
|
using QSB.WorldSync;
|
|
using System.Linq;
|
|
|
|
namespace QSB.EchoesOfTheEye.Prisoner.Messages;
|
|
|
|
internal class EmergeTriggerMessage : QSBMessage
|
|
{
|
|
public override void OnReceiveRemote()
|
|
{
|
|
// hewwo
|
|
var director = QSBWorldSync.GetUnityObjects<PrisonerDirector>().First();
|
|
director._darknessAwoken = true;
|
|
director._cellevator.OnPrisonerReveal();
|
|
director._musicSource.SetLocalVolume(Locator.GetAudioManager().GetAudioEntry(director._musicSource.audioLibraryClip).volume);
|
|
director._musicSource.Play();
|
|
director._prisonerBrain.BeginBehavior(PrisonerBehavior.Emerge);
|
|
}
|
|
}
|