1 2 3 4 5 6 7 8
string serialR = stream.ReadLine(); posFromSerial = float.Parse (serialR); float velo = Mathf.Round (rigidbody.position.x/factor); Vector3 mouvment = new Vector3(posFromSerial/factor, 0, mouveVertical); rigidbody.MovePosition (mouvment);