2025-11-20 20:02:48 +08:00
|
|
|
using System;
|
2025-11-20 14:44:09 +08:00
|
|
|
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;
|
2025-11-22 02:00:37 +08:00
|
|
|
// private readonly TurnManagerEvent turnManagerEvent = new TurnManagerEvent();
|
2025-11-20 14:44:09 +08:00
|
|
|
|
2025-11-20 20:02:48 +08:00
|
|
|
private void Awake()
|
|
|
|
|
{
|
|
|
|
|
if (Instance != null && Instance != this) Destroy(gameObject);
|
|
|
|
|
Instance = this;
|
|
|
|
|
DontDestroyOnLoad(gameObject);
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-20 14:44:09 +08:00
|
|
|
public bool GetNeedDebugLog() => needDebugLog;
|
2025-11-22 23:24:51 +08:00
|
|
|
|
2025-12-01 17:10:33 +08:00
|
|
|
public static void print_msg(string msg_from, string msg_title, string msg_content)
|
|
|
|
|
{
|
|
|
|
|
print($"[{msg_from}][{msg_title}]: {msg_content}");
|
|
|
|
|
}
|
2025-11-20 14:44:09 +08:00
|
|
|
}
|