using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager : MonoBehaviour { public static GameManager Instance; public DialogueController dialogueController; private void Awake() { if (Instance == null) { Instance = this; } else { Debug.LogWarning("There can only be one instance of the CharacterManager class"); } } }