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); } }
private void Start() { instance = this; }