Fix up eagle eye's weirdness, add option to auto clear saves
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user