// Update is called once per frame void Update () { data = server.GetComponent<ServerHandler> ().getData (); rigidbody.AddForce( new Vector3 (data.getX (), data.getY (), data.getZ ()), ForceMode.Acceleration); }