Turret tile basis

This commit is contained in:
2025-08-30 12:03:26 +08:00
parent 32f96d488d
commit 1c6c03cd41
12 changed files with 155 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ public partial class BaseTile : Node2D
_progressOverlay.Visible = false;
}
public void SetGhostMode(bool canPlace)
public virtual void SetGhostMode(bool canPlace)
{
// Don't modify collision for constructing buildings
if (IsConstructing) return;
@@ -42,7 +42,7 @@ public partial class BaseTile : Node2D
: new Color(1, 0, 0, 0.5f);
}
public void FinalizePlacement()
public virtual void FinalizePlacement()
{
if (_collisionShape != null)
_collisionShape.Disabled = false;