public void ChangeContent(int level) { SumText sum = SumaryModel.GetInstance().GetContent(level); title.text = sum.title; content.text = "\u3000\u3000" + sum.content; Show(true); }
private void Start() { Text title = transform.Find("summary/bg/title/text").GetComponent <Text>(); Text content = transform.Find("summary/bg/content").GetComponent <Text>(); int curIndex = (int)FlowModel.GetInstance().CurrFlowTask.FlowEnumID; SumText st = SumaryModel.GetInstance().GetContent(curIndex + 1); title.text = st.title; content.text = "\u3000\u3000" + st.content; }
private void Start() { StartCoroutine(ReadXml("/TestPaper/TestPaper.xml", "Subject/Items", TestPaperModel.GetInstance().ParseXml)); StartCoroutine(ReadXml("/TestPaper/sum.xml", "summary/Items", SumaryModel.GetInstance().ParseXml)); }