mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:35:34 +00:00
Elevator anticrush
This commit is contained in:
parent
aa17c965d5
commit
d3edb4de99
5 changed files with 620 additions and 107 deletions
|
|
@ -53,4 +53,20 @@ public partial class Elevator3D : PathFollow3D, IActivable
|
|||
_multiplier = -1f;
|
||||
}
|
||||
}
|
||||
|
||||
public void OnActorCollision(Area3D actor)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void OnBodyCollision(Node3D node)
|
||||
{
|
||||
//GD.Print($"{Name} Body Entered: {node.Name}");
|
||||
ReverseUp();
|
||||
}
|
||||
|
||||
private void ReverseUp()
|
||||
{
|
||||
_multiplier = 1f;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue