Fixed my error

This commit is contained in:
BOT Alex 2024-04-21 11:46:44 +02:00
parent 2a0f18491c
commit eb91c1dfe1
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ public class SlotManager : MonoBehaviour
public HealthComponent TowerHealth; public HealthComponent TowerHealth;
public bool IsOccupied => TowerHealth.TryGetComponent(out HealthComponent _); public bool IsOccupied => TowerHealth != null && TowerHealth.TryGetComponent(out HealthComponent _);
public Transform TowerSpawnPoint; public Transform TowerSpawnPoint;