using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class DebugGridObject : MonoBehaviour { [SerializeField] private TextMeshPro textMeshPro; private object gridObject; public virtual void SetGridObject(object gridObject) { this.gridObject = gridObject; } protected virtual void Update() { textMeshPro.text = gridObject.ToString(); } }