Exemple #1
0
 void Start()
 {
     dataSource = GameObject.FindObjectOfType <serialData>();
     if (dataSource == null)
     {
         Debug.LogError("Couldn't locate serial data source.");
     }
 }
Exemple #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;
 }