quantum-space-buddies/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBGlitchedCodeDoorInterface.cs

27 lines
528 B
C#
Raw Normal View History

2022-03-10 23:26:09 +00:00
namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects;
2023-07-28 18:30:57 +00:00
public class QSBGlitchedCodeDoorInterface : QSBPictureFrameDoor<GlitchedCodeDoorInterface>
2022-03-10 23:26:09 +00:00
{
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();
}
}