mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
27 lines
528 B
C#
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();
|
|
}
|
|
}
|