コード例 #1
0
    /// <summary>
    /// Loads the comment from LMS to the list.
    /// </summary>
    /// <remarks>Get the List of LMS comments from SCORM and display it in the GUI as a string</remarks>
    public void LoadCommentFromLMSList()
    {
        List <StudentRecord.CommentsFromLMS> commentsFromLMSList = ScormManager.GetCommentsFromLMS();
        string stringCommentsFromLMSList = "";

        foreach (StudentRecord.CommentsFromLMS comment in commentsFromLMSList)
        {
            string timeStamp = comment.timeStamp.ToString();
            string location  = comment.location;
            string text      = comment.comment;
            stringCommentsFromLMSList += timeStamp + " :: " + location + "\n" + text + "\n\n";
        }
        GameObject.Find("TextCommentsFromLMS").GetComponent <Text> ().text = stringCommentsFromLMSList;
    }