Teleporter invisible mode

This commit is contained in:
Marco 2025-02-20 11:10:28 +01:00
commit e7729bc1c1
2 changed files with 24 additions and 0 deletions

View file

@ -9,6 +9,9 @@ public partial class Teleporter : Activable
{
[Export]
public bool IsEnabled { get; set; }
[Export]
public bool Invisible { get; private set; } = false;
public bool IsPrimed { get; private set; }
@ -39,6 +42,8 @@ public partial class Teleporter : Activable
_particles.Emitting = false;
_particleTimer = 0;
this.Visible = !Invisible;
if (IsEnabled)
{
_animatedSprite.Play("Active");