Example #1
0
 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;
 }
Example #2
0
 void OnEnable()
 {
     textMesh              = gameObject.GetComponentInChildren <TextMesh>();
     textMaterial          = textMesh.GetComponent <MeshRenderer>().material;
     textColorId           = Shader.PropertyToID("_Color");
     scrollingUIController = ScrollingSessionListUIController.Instance;
     if (scrollingUIController == null)
     {
         Debug.Log("sad");
     }
 }
Example #3
0
 private void Start()
 {
     networkDiscovery   = NetworkDiscoveryWithAnchors.Instance;
     scrollingUIControl = ScrollingSessionListUIController.Instance;
 }
Example #4
0
 void OnEnable()
 {
     scrollingUIController = ScrollingSessionListUIController.Instance;
 }