mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +00:00
27 lines
530 B
C#
27 lines
530 B
C#
namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects;
|
|
|
|
internal 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();
|
|
}
|
|
}
|