quantum-space-buddies/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBGlitchedCodeDoorInterface.cs
2023-07-28 19:30:57 +01:00

27 lines
528 B
C#

namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects;
public class QSBGlitchedCodeDoorInterface : QSBPictureFrameDoor<GlitchedCodeDoorInterface>
{
public override void SetOpenState(bool open)
{
if (AttachedObject._door.IsOpen() == open)
{
AttachedObject.UpdatePrompt();
AttachedObject.CheckPlayGlitchAudio();
return;
}
if (open)
{
AttachedObject._door.Open();
}
else
{
AttachedObject._door.Close();
}
AttachedObject.UpdatePrompt();
AttachedObject.CheckPlayGlitchAudio();
}
}