using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class TurnManagerSingleton : MonoBehaviour { public static TurnManagerSingleton Instance { get; private set; } [SerializeField] private bool needDebugLog = true; // private readonly TurnManagerEvent turnManagerEvent = new TurnManagerEvent(); private void Awake() { if (Instance != null && Instance != this) Destroy(gameObject); Instance = this; DontDestroyOnLoad(gameObject); } public bool GetNeedDebugLog() => needDebugLog; public static void print_msg(string msg_from, string msg_title, string msg_content) { print($"[{msg_from}][{msg_title}]: {msg_content}"); } }