private void Start()
 {
     scrollingUIControl = ScrollingSessionListUIController.Instance;
     textMesh           = transform.parent.GetComponentInChildren <TextMesh>();
     textMaterial       = textMesh.GetComponent <MeshRenderer>().material;
     textColorId        = Shader.PropertyToID("_Color");
     textMaterial.SetColor(textColorId, Color.grey);
     networkDiscovery = NetworkDiscoveryWithAnchors.Instance;
 }
 /// <summary>
 /// When the control gets started we need to do some setup.
 /// </summary>
 private void Awake()
 {
     textMesh              = gameObject.GetComponentInChildren <TextMesh>();
     textMaterial          = textMesh.GetComponent <MeshRenderer>().material;
     textColorId           = Shader.PropertyToID("_Color");
     scrollingUIController = ScrollingSessionListUIController.Instance;
     if (scrollingUIController == null)
     {
         Debug.Log("without a scrolling UI control, this button can't work");
         Destroy(this);
     }
 }