Fix deprecation and other warnings

This commit is contained in:
Michal Pikulski
2025-11-10 23:18:01 +01:00
parent a049c6a750
commit 961da5e729
14 changed files with 16 additions and 48 deletions

View File

@@ -184,8 +184,10 @@ namespace Dialogue
return null;
}
private void OnDestroy()
protected override void OnDestroy()
{
base.OnDestroy();
// Unregister from events
if (PuzzleManager.Instance != null)
PuzzleManager.Instance.OnStepCompleted -= OnAnyPuzzleStepCompleted;