slight organization

This commit is contained in:
2025-06-20 22:58:44 -05:00
parent 08dcb7c019
commit a322862a68
20 changed files with 16 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
using UnityEngine;
public class GameManager : MonoBehaviour
{
public static GameManager Instance { get; private set; }
public DialogueManager DialogueManager { get; private set; }
private void Awake()
{
// If there is an instance, and it's not me, delete myself.
if (Instance != null && Instance != this)
{
Destroy(this);
}
else
{
Instance = this;
DontDestroyOnLoad(gameObject);
DialogueManager = GetComponent<DialogueManager>();
}
}
}