Gimbal Lock Problem while rotating around 3 axes. [UNITY3D] : I'm trying to do rotation on all of the 3 axes. I have three buttons for each axis, say user pressed X. Then the object should return 90 degrees around X axis. But looks like I cannot get rid of the gimbal lock situation whatever I do. Now I have 

    private void rotateMe(){
            if (x)
                transform.rotation *= Quaternion.AngleAxis(90, new Vector3(1, 0, 0));
            else if (y)
                transform.rotation *= Quaternion.AngleAxis(90, new Vector3(0, 1, 0));
            else if (z)
                transform.rotation *= Quaternion.AngleAxis(90, new Vector3(0, 0, 1));
        } 

This too still gives me gimbal lock problem. How do I get rid of the gimbal lock problem?
