29 lines
699 B
C#
Raw Normal View History

2022-05-01 12:26:17 +01:00
using QSB.Messaging;
using QSB.WorldSync;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QSB.EchoesOfTheEye.Prisoner.Messages;
internal class StopProjectMessage : QSBMessage<bool>
{
public StopProjectMessage(bool done) : base(done) { }
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
if (!Data)
{
director._prisonerBrain.BeginBehavior(PrisonerBehavior.WaitForProjection, 0.5f);
return;
}
director._prisonerDetector.SetActivation(false);
director._prisonerBrain.BeginBehavior(PrisonerBehavior.ExperienceEmotionalCatharsis, 0.5f);
}
}