how to reset rotation in unity

Code Example - how to reset rotation in unity

                
                        transform.rotation = Quaternion.identity;