How to reset transform.Rotate position
<p>I want to be able to, at the click of the left mouse button, rotate an object to (15,0,0), then, rotate it back to (0,0,0) after about a second.</p>

<p>The problem is, it doesn't rotate back and I can't seem to get it to.</p>

<pre><code>using UnityEngine;
using System.Collections;

public class HitScript : MonoBehaviour
{
    private bool ifswung;

    // Use this for initialization
    void Start()
    {
        ifswung = false;
    }


    // Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            if (ifswung == false)        
            {
            transform.Rotate(15, 0, 0);
            ifswung = true;
              }
            else if(ifswung == true)
            {
                transform.Rotate(0, 0, 0);
                ifswung = false;
            }
        }
    }
}
</code></pre>