Movement refactor
This commit is contained in:
@@ -13,7 +13,8 @@ public partial class SpaceshipExitComponent : Area2D
|
||||
|
||||
private void OnBodyEntered(Node2D body)
|
||||
{
|
||||
if (body is not PlayerController) return;
|
||||
if (body is not PlayerController player) return;
|
||||
EmitSignalSpaceshipExit();
|
||||
player.SetPlatformMovement();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user