puzzlestep_indicators (#14)

Co-authored-by: Michal Pikulski <michal.a.pikulski@gmail.com>
Reviewed-on: #14
This commit is contained in:
2025-10-02 05:42:17 +00:00
parent a6c63af911
commit e713a580a9
29 changed files with 899 additions and 10 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
{