save tool between scenes and in save file

This commit is contained in:
2026-03-25 18:46:07 -05:00
parent 40af32939e
commit 1e0ea14ae2
9 changed files with 779 additions and 704 deletions
+3
View File
@@ -11,6 +11,7 @@ public class GameManager : MonoBehaviour
public static GameManager Instance { get; private set; }
public DialogueManager DialogueManager { get; private set; }
public TimeManager TimeManager { get; private set; }
public PlayerManager PlayerManager { get; private set; }
public Inventory Inventory { get; private set; }
public Storybools Storybools { get; private set; }
@@ -26,6 +27,7 @@ private void Awake()
if (Instance != null && Instance != this)
{
Destroy(this.gameObject);
return;
}
else
{
@@ -52,6 +54,7 @@ private void ReloadReferences()
Instance.Inventory = GetComponent<Inventory>();
Instance.TimeManager = GetComponent<TimeManager>();
Instance.PlayerManager = GetComponent<PlayerManager>();
}
/// <summary>