You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
709 B
29 lines
709 B
using UnityEngine; |
|
using System.Collections; |
|
using AX.MessageSystem; |
|
using UnityEngine.UI; |
|
|
|
public class AllExamMessage : MonoBehaviour { |
|
|
|
// Use this for initialization |
|
public ExaminationInfo exam; |
|
void Start() |
|
{ |
|
|
|
} |
|
// Update is called once per frame |
|
void Update() |
|
{ |
|
|
|
} |
|
public void setExam(ExaminationInfo exam) |
|
{ |
|
this.exam = exam; |
|
transform.Find("ExamName").GetComponent<Text>().text = exam.Name; |
|
transform.Find("StartTime").GetComponent<Text>().text = exam.StartingTime.ToString("yyyy-MM-dd HH:mm:ss"); |
|
} |
|
public void showDetail() |
|
{ |
|
MessageDispatcher.SendMessage("SHOW_QUESTION_LIST", exam); |
|
} |
|
}
|
|
|