Compare commits

...

2 Commits

Author SHA1 Message Date
48fff594f0 upgradeData.cs 누락 추가 2026-02-22 15:43:44 +09:00
b2e3fb1ecf 시야 속성명 변경 대응
vision radius -> sight
2026-02-22 15:43:06 +09:00
2 changed files with 3 additions and 2 deletions

View File

@@ -78,6 +78,7 @@
<Compile Include="Assets\Scripts\Worker.cs" />
<Compile Include="Assets\Scripts\WorkerSpawner.cs" />
<Compile Include="Assets\Scripts\Resource.cs" />
<Compile Include="Assets\Data\Scripts\DataClasses\UpgradeData.cs" />
<Compile Include="Assets\Scripts\AutoTargetSystem.cs" />
<Compile Include="Assets\Scripts\CreepDataComponent.cs" />
<Compile Include="Assets\Scripts\BuildingSlotButton.cs" />

View File

@@ -70,9 +70,9 @@ namespace Northbound.Editor
if (visionProvider != null)
{
SerializedObject so = new SerializedObject(visionProvider);
so.FindProperty("visionRange").floatValue = playerData.visionRadius;
so.FindProperty("visionRange").floatValue = playerData.sight;
so.ApplyModifiedProperties();
Debug.Log($"[PlayerPrefabSetup] Updated PlayerVisionProvider: visionRange={playerData.visionRadius}");
Debug.Log($"[PlayerPrefabSetup] Updated PlayerVisionProvider: visionRange={playerData.sight}");
}
var resourceInventory = prefab.GetComponent<PlayerResourceInventory>();