Compare commits
2 Commits
2ac9331504
...
48fff594f0
| Author | SHA1 | Date | |
|---|---|---|---|
| 48fff594f0 | |||
| b2e3fb1ecf |
@@ -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" />
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user