mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 14:15:53 +00:00
Teleporter invisible mode
This commit is contained in:
parent
c0d44a2331
commit
e7729bc1c1
2 changed files with 24 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue