public void Update() { state.SetRotation(rotation); gameObject.transform.rotation = state.rotation; usedRotation = state.rotation.eulerAngles; }