25 lines
605 B
C#
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);
|
|
}
|
|
} |