건물 체력 시스템 추가
건물 시야 시스템은 기본 건물데이터에 통합
This commit is contained in:
@@ -23,6 +23,22 @@ namespace Northbound
|
||||
[Tooltip("Can rotate this building?")]
|
||||
public bool allowRotation = true;
|
||||
|
||||
[Header("Health Settings")]
|
||||
[Tooltip("Maximum health of the building")]
|
||||
public int maxHealth = 100;
|
||||
[Tooltip("Can this building be damaged?")]
|
||||
public bool isIndestructible = false;
|
||||
[Tooltip("Auto-regenerate health over time")]
|
||||
public bool autoRegenerate = false;
|
||||
[Tooltip("Health regeneration per second")]
|
||||
public int regenPerSecond = 1;
|
||||
|
||||
[Header("Vision Settings")]
|
||||
[Tooltip("Does this building provide vision?")]
|
||||
public bool providesVision = true;
|
||||
[Tooltip("Vision range in world units")]
|
||||
public float visionRange = 15f;
|
||||
|
||||
public Vector3 GetSize(int rotation)
|
||||
{
|
||||
// Rotation 0,180 = normal, 90,270 = swap width/length
|
||||
|
||||
Reference in New Issue
Block a user