public void FindText()
{
// If we didn't have a text mesh assigned,
// look for one in a child:
if (spriteText == null)
spriteText = (SpriteText)GetComponentInChildren(typeof(SpriteText));
if (spriteText != null)
{
spriteText.gameObject.layer = gameObject.layer;
spriteText.Parent = this;
}
}