Logic Question. Raycasting to activate Animations.

Hello.

i am trying to get my head around a problem.

I have got the first animation working, when i tap again with the mouse of gear VR button it doesn’t do anything the second time.

if (beenHit = true && Input.GetButton("Tap") && hit.collider.gameObject.tag.Equals("NextTank"))
                {
                beenHit = false;
                firstAnimation();
                }

else if (beenHit = false && Input.GetButton("Tap") && hit.collider.gameObject.tag.Equals("NextTank"))
            {
                beenHit = true;
                secondAnimation();
            }

beenHit = true

This code sets beenHit to true.

beenHit == true

This code checks if beenHit is true.