Exemplo n.º 1
0
 void Start()
 {
     dataSource = GameObject.FindObjectOfType <serialData>();
     if (dataSource == null)
     {
         Debug.LogError("Couldn't locate serial data source.");
     }
 }
Exemplo n.º 2
0
 void Start()
 {
     dataPoints = new List <trackedDataPoint>();
     dataSource = GameObject.FindObjectOfType <serialData>();
     if (dataSource == null)
     {
         Debug.LogError("Couldn't locate serial data source.");
     }
     sourceName = gameObject.name;
 }