mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 06:36:01 +00:00
Falling props
This commit is contained in:
parent
c0493c2008
commit
4728677e80
45 changed files with 171 additions and 540 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue