Fix up eagle eye's weirdness, add option to auto clear saves

This commit is contained in:
Michal Pikulski
2025-11-24 10:37:40 +01:00
parent 3f847508be
commit ff28bd23cb
10 changed files with 235 additions and 84 deletions

View File

@@ -8,6 +8,7 @@ using UnityEngine.UI;
using System.Linq;
using System.Collections.Generic;
using System;
using DamianExperiments;
namespace UI
{
@@ -308,6 +309,9 @@ namespace UI
/// </summary>
private void ApplyUIModeOverrides(bool visible)
{
// First, reset state to neutral
ResetStateBeforeLevelLoad();
switch (currentUIMode)
{
case UIMode.Overworld:
@@ -336,6 +340,11 @@ namespace UI
}
}
protected void ResetStateBeforeLevelLoad()
{
eagleEye.GetComponent<EagleEyeBehaviour>()?.ResetEagleEye();
}
/// <summary>
/// Automatically manages HUD visibility based on page stack state
/// </summary>