public class DataManager : MonoBehaviour{ private static DataManager _instance; public static DataManager Instance { get { if (_instance == null) { Debug.Log(_instance == null); _instance = FindObjectOfType(); DontDestroyOnLoad(_instance.gameObject); } return _instance; } } ..