public void Awake()
{
//TODO: Make a loading scene to wait for data after we send data...
finishText = GameObject.Find ("Finished").GetComponent<Text> ();
//crashText.text = "";
sendData = this.GetComponent<SendData>();
sensors = this.GetComponent<Sensors> ();
initialPosition = transform.position;
initialRotation = transform.rotation;
rb = GetComponent<Rigidbody> ();
rb.centerOfMass = centerOfMass;
audioSource = GetComponent<AudioSource> ();
if (MoveCar.isControlledByAI) {
//Change to IEnumerator
StartCoroutine(sendData.GetDataFromServer());
}
StartAgain ();
//Start sending data only when acceleration is pressed for the first time
}