Movement refactor

This commit is contained in:
2025-08-30 23:06:12 +02:00
committed by GitHub
parent d786ef4c22
commit 88c7a0a055
41 changed files with 656 additions and 122 deletions

View File

@@ -13,7 +13,8 @@ public partial class SpaceshipEnterComponent : Area2D
private void OnBodyEntered(Node2D body)
{
if (body is not PlayerController) return;
if (body is not PlayerController player) return;
player.SetSpaceshipMovement();
EmitSignalSpaceshipEntered();
QueueFree();
}