Exemplo n.º 1
0
 void InitExam(COM_Exam exam)
 {
     ResExamData(ExamSystem._Qindex);
     _RigthNum = (int)ExamSystem._RightNum;
     ResExamData(ExamSystem._Qindex);
     _RigthNum              = ExamSystem._RightNum;
     _ObtainExpLable.text   = ExamSystem._Exp.ToString();
     _ObtainMoneyLable.text = ExamSystem._Money.ToString();
     _CorrectRateLable.text = _RigthNum + "/" + ExamSystem._Qindex;
     if (_RigthNum >= 10)
     {
         _TenNumLable.text = "1/1";
     }
     else
     {
         _TenNumLable.text = "0/1";
     }
     if (_RigthNum >= 20)
     {
         _TwentyNumLable.text = "1/1";
     }
     else
     {
         _TwentyNumLable.text = "0/1";
     }
 }
Exemplo n.º 2
0
 public static void ClearData()
 {
     _Exam       = null;
     _IsOpenExam = false;
     _Qindex     = 0;
     _RightNum   = 0;
     _Money      = 0;
     _Exp        = 0;
 }
Exemplo n.º 3
0
 public static void SyncExam(COM_Exam exam)
 {
     _Exam     = exam;
     _Qindex   = (int)exam.questionIndex_;
     _RightNum = (int)exam.rightNum_;
     _Money    = (int)exam.money_;
     _Exp      = (int)exam.exp_;
     if (InitExamData != null)
     {
         InitExamData(exam);
     }
     if (OpenExamH != null)
     {
         OpenExamH();
     }
 }