First steps

This commit is contained in:
Michal Pikulski
2025-10-01 14:35:17 +02:00
parent a6c63af911
commit dac119fd7b
30 changed files with 806 additions and 9 deletions

View File

@@ -22,7 +22,8 @@ namespace AppleHills.Editor
// Set up the delegates in SettingsAccess
AppleHills.SettingsAccess.SetupEditorProviders(
GetPlayerStopDistance,
GetPlayerStopDistanceDirectInteraction
GetPlayerStopDistanceDirectInteraction,
GetPuzzlePromptRange
);
// Subscribe to asset changes to auto-refresh when settings are modified
@@ -58,7 +59,8 @@ namespace AppleHills.Editor
// Re-register the delegates in case they were lost
AppleHills.SettingsAccess.SetupEditorProviders(
GetPlayerStopDistance,
GetPlayerStopDistanceDirectInteraction
GetPlayerStopDistanceDirectInteraction,
GetPuzzlePromptRange
);
Debug.Log("Editor settings loaded for Scene View use");
@@ -81,6 +83,11 @@ namespace AppleHills.Editor
return _interactionSettings?.PlayerStopDistanceDirectInteraction ?? 2.0f;
}
private static float GetPuzzlePromptRange()
{
return _interactionSettings?.DefaultPuzzlePromptRange ?? 3.0f;
}
// Other utility methods
public static T GetSettings<T>() where T : BaseSettings
{