Game_CodeMM/Assets/00_scripts/Events/TurnScripts/TurnManagerSingleton.cs
2025-11-20 14:44:09 +08:00

25 lines
605 B
C#

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;
// public void SetDebugLog(bool value) => needDebugLog = value;
public bool GetNeedDebugLog() => needDebugLog;
private void Awake()
{
if (Instance != null && Instance != this)
{
Destroy(gameObject);
return;
}
Instance = this;
DontDestroyOnLoad(gameObject);
}
}