Checking the localScale of Collision

Hi, Im coding for a collection based game in which you can only collect objects with the same or smaller scale then the player. The player and object are the same sprite (Yes a 2D game) and I’ve been looking for a way to check the scale of the object I have collided to compare. Both the player and “enemies” scale from (0.5,0.5,0.5) to (4.5,4.5,4.5) increasing 0.5 everytime the player collects and being spawned in for the “enemies”

if ( == "Circle(Clone)" && **coll.gameObject.localScale.x =< transform.localScale.x** )
			Score=Score + 50;
			transform.localScale += Vector3(0.5,0.5,0.5);

I know the ** part is wrong, and I’m looking for a proper way to type that or hope I could learn a new method or two here.

Well, I question your logic here…

BUT the first things that is wrong is that coll.gameObject doesn’t have a localScale, coll.gameObject .transform, does.