예제 #1
0
    public void ChangeContent(int level)
    {
        SumText sum = SumaryModel.GetInstance().GetContent(level);

        title.text   = sum.title;
        content.text = "\u3000\u3000" + sum.content;
        Show(true);
    }
예제 #2
0
    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;
    }
예제 #3
0
 private void Start()
 {
     StartCoroutine(ReadXml("/TestPaper/TestPaper.xml", "Subject/Items", TestPaperModel.GetInstance().ParseXml));
     StartCoroutine(ReadXml("/TestPaper/sum.xml", "summary/Items", SumaryModel.GetInstance().ParseXml));
 }