public void initFromPackage(SFSObject aObject) { float[] pos = aObject.GetFloatArray("pos"); Vector3 currentPosition = this.transform.position; Vector3 position = new Vector3(pos[0],pos[1],pos[2]); originalPosition = this.transform.position; float[] spds = aObject.GetFloatArray("spds"); byte input = aObject.GetByte("in"); this.speed = spds[0]; this.desiredSpeed = spds[1]; this.currentPoint = GameObject.Find(aObject.GetUtfString("rp")).GetComponent<RaceLinePoint>(); this.myRacingLine = GameObject.Find(aObject.GetUtfString("r")).GetComponent<RacingLine>(); this.transform.position = position; }