wonky polygon ui rework
This commit is contained in:
parent
6bdc9617b2
commit
6c55d719ff
22 changed files with 165 additions and 117 deletions
|
|
@ -260,13 +260,11 @@ public sealed partial class Player : CharacterBody2D, IAttackable, IHitboxOwner,
|
|||
|
||||
public void OnEnteredWater(Node2D body)
|
||||
{
|
||||
GD.Print("Entered water");
|
||||
IsInWater = true;
|
||||
}
|
||||
|
||||
public void OnLeftWater(Node2D body)
|
||||
{
|
||||
GD.Print("Left water");
|
||||
if (!IsInWater || SubmersedSensor.HasOverlappingBodies()) return;
|
||||
IsInWater = false;
|
||||
WaterJumpAllowedTimer.Start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue