Falling props

This commit is contained in:
MaddoScientisto 2025-07-04 22:55:28 +02:00
commit 4728677e80
45 changed files with 171 additions and 540 deletions

View file

@ -23,12 +23,25 @@ public partial class FuncShroud : StaticBody3D, IActivable
public override void _Ready()
{
if (Engine.IsEditorHint()) return;
if (Engine.IsEditorHint())
{
HideShroud();
return;
};
if (!string.IsNullOrWhiteSpace(TargetName))
{
this.AddToGroup(TargetName);
}
if (_enabled)
{
ShowShroud();
}
else
{
HideShroud();
}
}
public bool Activate(ActivationType activationType = ActivationType.Toggle)