private void Awake() { if (Instance == null) { Debug.Log("creating tile dictionary instance"); Instance = this; Instance.tileInfo = new Dictionary <Vector3Int, TileInfo>(); DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }