DialogueComponent doodles

This commit is contained in:
2025-09-26 15:47:26 +02:00
committed by Michal Pikulski
parent c8cbc45f04
commit b07eea6aae
35 changed files with 1025 additions and 373 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.SceneManagement;
@@ -200,6 +201,16 @@ namespace PuzzleS
return _unlockedSteps.Contains(step);
}
/// <summary>
/// Checks if a puzzle step with the specified ID has been completed
/// </summary>
/// <param name="stepId">The ID of the puzzle step to check</param>
/// <returns>True if the step has been completed, false otherwise</returns>
public bool IsPuzzleStepCompleted(string stepId)
{
return _completedSteps.Any(step => step.stepId == stepId);
}
void OnApplicationQuit()
{
_isQuitting = true;