using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectDataVisualizer : MonoBehaviour { [SerializeField] string _line98; //[SerializeField] Cabinet _cabinet = null; [SerializeField] int _objectNumber; [SerializeField] string[] _adn; private void Awake() { if (int.TryParse(gameObject.name[4..], out _objectNumber)) { UpdateLine98Display(); } else { Debug.LogError($"Missing object number in game object name : {gameObject.name}"); Destroy(this); } } [ContextMenu("Update Line 98")] public void UpdateLine98Display() { _adn = _G.OBJs[_objectNumber]; //_line98 = _G.OBJs[_objectNumber][98]; //_cabinet = ProductInfoFormatter.GetCabFromLine98(_line98); //Debug.Log(_line98); } }