示例#1
0
	// Use this for initialization
	void Start () {
		arduinoCadenceScript = arduinoCadenceObject.GetComponent<ArduinoCadence>();
		values = new float[ntrail];
		for (int i = 0; i< ntrail-1; i++) {
			values[i] = 0;
		}
		InvokeRepeating ("DoReadAndComputeAverage", 0f, time); 

	}
 // Use this for initialization
 void Start()
 {
     arduinoCadenceScript = arduinoCadenceObject.GetComponent <ArduinoCadence>();
     values = new float[ntrail];
     for (int i = 0; i < ntrail - 1; i++)
     {
         values[i] = 0;
     }
     InvokeRepeating("DoReadAndComputeAverage", 0f, time);
 }
示例#3
0
	// Use this for initialization
	void Start () {
		arduinoCadenceScript = arduinoCadenceObject.GetComponent<ArduinoCadence>();  // really need a common base class.
	}
 // Use this for initialization
 void Start()
 {
     arduinoCadenceScript = arduinoCadenceObject.GetComponent <ArduinoCadence>();         // really need a common base class.
 }