void Update() { if (stream) this.PositionController(); //this.HandleButtons(); Vector3 v = this.transform.position; direction = v - lastFrameLocation; lastFrameLocation = v; }