Language

How can I get the width of a gameobject?

I'm a noob in Unity, trying to make a tower of hanoi style game.

I'm trying to make sure a gameobject (2D sprite, say, panda) stays to the left of another (say, bamboo), regardless of the former's size. I thought I could take the bamboo's location, and deduct the width of the panda from it.