Esempio n. 1
0
    void Start()
    {
        orientation = this.transform.rotation;
        topictype   = this.transform.Find("PanelType").transform.Find("Text").GetComponent <Text>().text;
        Debug.Log("############ TopicBallManager - " + topictype + " is available? : " + TypesAvailable.GetInstance().IsTypeRenderingAvailable(topictype));
        //Debug.Log("############ TopicBallManager - " + topictype + " is available? : " + TypesAvailable.IsTypeRenderingAvailable(topictype));

        /*
         * If topic/service data visualization is available,
         * show its 'type-panel' in other color/material
         * and make it clickable -set onClick() callback-
         */
        //if (TypesAvailable.IsTypeRenderingAvailable(topictype))
        if (TypesAvailable.GetInstance().IsTypeRenderingAvailable(topictype))
        {
            this.transform.Find("PanelType").GetComponent <Image>().material = panelMaterialForDataAvailable;
            this.transform.Find("PanelType").transform.Find("Button").GetComponent <Button>().onClick.AddListener(DataVisualization);
        }
    }
Esempio n. 2
0
 private void Start()
 {
     instance = this;
 }