Help with >Input.GetMouseButtonDown(0)<

Hey everyone, im working in a TCG game, and i need a script, to turn the card over 180º when I click on it.

I use this script:

function Update ()

{

if ( Input.GetMouseButtonDown(0))

transform.Rotate(0, 180, 0);
//transform.position = Vector3(10, 10, 10);
	
	}

But when i click over a card all the cards with this script turn over.
I need to only, the one under the click to rotate.
I alredy try, OnMouseEnter, OnMouseOver, Raycast… Probably I did it in the wrong way. But alredy try everything.

Help plz :C

You can use OnMouseDown():

function OnMouseDown () {
     transform.eulerAngles = Vector3(0.0, 180.0, 0.0);
}