MPV of save/load system

This commit is contained in:
Michal Pikulski
2025-10-27 14:00:37 +01:00
parent 690e8b4507
commit f5c1ae51cd
15 changed files with 1234 additions and 17 deletions

View File

@@ -233,7 +233,7 @@ namespace UI.CardSystem
#if UNITY_EDITOR
[CustomEditor(typeof(CardUIElement))]
public class CardUIElementEditor : Editor
public class CardUIElementEditor : UnityEditor.Editor
{
public override void OnInspectorGUI()
{

View File

@@ -1,6 +1,7 @@
using System.Collections;
using Bootstrap;
using Core;
using Core.SaveLoad;
using Input;
using Pixelplacement;
using UI.Core;
@@ -31,8 +32,10 @@ namespace UI.Tutorial
void InitializeTutorial()
{
if (playTutorial)
if (playTutorial && !SaveLoadManager.Instance.currentSaveData.playedDivingTutorial)
{
// TODO: Possibly do it better, but for now just mark tutorial as played immediately
SaveLoadManager.Instance.currentSaveData.playedDivingTutorial = true;
// pause the game, hide UI, and register for input overrides
GameManager.Instance.RequestPause(this);
UIPageController.Instance.HideAllUI();