Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     _dr = GameObject.FindObjectOfType <DataReader>();
     gameObject.GetComponent <TextMeshProUGUI>().text = "Microcarriers: " + _dr.MicrocarrierCount() + "\nCells: " + _dr.CellCount();
 }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     gameObject.GetComponent <TextMeshProUGUI>().text = "Microcarriers: " + _dr.MicrocarrierCount() + "\nCells: " + _dr.CellCount();
 }