Fixed my error
This commit is contained in:
parent
2a0f18491c
commit
eb91c1dfe1
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue